aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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']