From 081b92712b5afd8e17f3a4e37477ac9534a5a15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 18 Sep 2019 15:09:49 +0200 Subject: Update python standard for cz.nic --- flake8 | 2 ++ install | 2 ++ pylintrc | 3 +++ vim/ftplugin/python.vim | 4 ++-- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 flake8 create mode 100644 pylintrc diff --git a/flake8 b/flake8 new file mode 100644 index 0000000..6deafc2 --- /dev/null +++ b/flake8 @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 120 diff --git a/install b/install index e0b4758..56bbcd5 100755 --- a/install +++ b/install @@ -53,6 +53,8 @@ fi if ask "dev" "Development tools configuration"; then inst config/pycodestyle ~/.config/pycodestyle + inst flake8 ~/.flake8 + inst pylintrc ~/.pylintrc fi if ask "email-sync" "Install email synchronization"; then diff --git a/pylintrc b/pylintrc new file mode 100644 index 0000000..72dd61d --- /dev/null +++ b/pylintrc @@ -0,0 +1,3 @@ +[FORMAT] +# Maximum number of characters on a single line. +max-line-length=120 diff --git a/vim/ftplugin/python.vim b/vim/ftplugin/python.vim index bc7ff7b..5e07f53 100644 --- a/vim/ftplugin/python.vim +++ b/vim/ftplugin/python.vim @@ -1,5 +1,5 @@ -setlocal colorcolumn=79 -setlocal textwidth=79 +setlocal colorcolumn=120 +setlocal textwidth=120 let b:ale_linters = ['pyls'] let b:ale_fixers = ['autopep8', 'isort', 'black', 'add_blank_lines_for_python_control_statements', 'remove_trailing_lines', 'trim_whitespace'] -- cgit v1.2.3