aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2019-09-18 15:09:49 +0200
committerKarel Kočí <karel.koci@nic.cz>2019-09-18 15:09:49 +0200
commit081b92712b5afd8e17f3a4e37477ac9534a5a15f (patch)
treec31a2de56171c10a828635a50ab81760f3070a47
parentd283ed4624de58d471fc1cad00f3b5c4564ca663 (diff)
downloadmyconfigs-081b92712b5afd8e17f3a4e37477ac9534a5a15f.tar.gz
myconfigs-081b92712b5afd8e17f3a4e37477ac9534a5a15f.tar.bz2
myconfigs-081b92712b5afd8e17f3a4e37477ac9534a5a15f.zip
Update python standard for cz.nic
-rw-r--r--flake82
-rwxr-xr-xinstall2
-rw-r--r--pylintrc3
-rw-r--r--vim/ftplugin/python.vim4
4 files changed, 9 insertions, 2 deletions
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']