aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-11-15 15:56:57 +0100
committerKarel Kočí <cynerd@email.cz>2022-11-15 15:56:57 +0100
commit43d8312f5cf165f8574b489c68dc32c8cd296745 (patch)
tree2ea64b9ade3d33cd3bc1a2b307588be280189171
parent9b81c54bf827d60427560585aae31d68db6fc746 (diff)
downloadmyconfigs-43d8312f5cf165f8574b489c68dc32c8cd296745.tar.gz
myconfigs-43d8312f5cf165f8574b489c68dc32c8cd296745.tar.bz2
myconfigs-43d8312f5cf165f8574b489c68dc32c8cd296745.zip
python: go for PEP 8 number of columns
-rw-r--r--flake82
-rw-r--r--vim/ftplugin/python.vim5
2 files changed, 3 insertions, 4 deletions
diff --git a/flake8 b/flake8
index 6deafc2..15fc7e3 100644
--- a/flake8
+++ b/flake8
@@ -1,2 +1,2 @@
[flake8]
-max-line-length = 120
+max-line-length = 80
diff --git a/vim/ftplugin/python.vim b/vim/ftplugin/python.vim
index 1eda902..6e9145a 100644
--- a/vim/ftplugin/python.vim
+++ b/vim/ftplugin/python.vim
@@ -1,6 +1,5 @@
-setlocal colorcolumn=120
-setlocal textwidth=120
+setlocal colorcolumn=80
+setlocal textwidth=80
let b:ale_linters = ['pylsp', 'pylint', 'mypy', 'pydocstyle']
let b:ale_fixers = ['isort', 'black', 'remove_trailing_lines', 'trim_whitespace']
-let g:ale_python_black_options = '-l 120'