diff options
author | Karel Kočí <karel.koci@nic.cz> | 2019-09-18 15:09:49 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2019-09-18 15:09:49 +0200 |
commit | 081b92712b5afd8e17f3a4e37477ac9534a5a15f (patch) | |
tree | c31a2de56171c10a828635a50ab81760f3070a47 | |
parent | d283ed4624de58d471fc1cad00f3b5c4564ca663 (diff) | |
download | myconfigs-081b92712b5afd8e17f3a4e37477ac9534a5a15f.tar.gz myconfigs-081b92712b5afd8e17f3a4e37477ac9534a5a15f.tar.bz2 myconfigs-081b92712b5afd8e17f3a4e37477ac9534a5a15f.zip |
Update python standard for cz.nic
-rw-r--r-- | flake8 | 2 | ||||
-rwxr-xr-x | install | 2 | ||||
-rw-r--r-- | pylintrc | 3 | ||||
-rw-r--r-- | vim/ftplugin/python.vim | 4 |
4 files changed, 9 insertions, 2 deletions
@@ -0,0 +1,2 @@ +[flake8] +max-line-length = 120 @@ -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'] |