From 8b2daa45c0f2acbf5d24e7400d256662244c38ba Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Thu, 11 May 2023 13:51:40 -0700 Subject: [PATCH] Add pylintrc Also remove line length configs from py linters in vimrc since we're configuring that properly now. Don't like having to repeat myself in pylintrc and black's conf but meh. --- .pylintrc | 15 +++++++++++++++ .vimrc | 5 ----- 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 .pylintrc diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000..6057e34 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,15 @@ +[tool.pylint.main] +fail-under = 10 +ignore = ["CVS", ".git", ".hg", ".svn"] +ignore-patterns = ["^\\.#"] +suggestion-mode = true + +[tool.pylint.basic] +bad-names = ["foo", "bar", "baz", "this", "thing"] +good-names = ["_"] + +[tool.pylint.format] +max-line-length = 120 + +[tool.pylint.variables] +allow-global-unused-variables = false diff --git a/.vimrc b/.vimrc index 04cd2e0..1a8a363 100644 --- a/.vimrc +++ b/.vimrc @@ -36,11 +36,6 @@ let g:ale_fixers={ \'elixir': ['mix_format'] \} -" Set python line length in all the linters/fixers -let g:ale_python_pylint_options = '--max-line-length 119' -let g:ale_python_autopep8_options = '--max-line-length 119' -let g:ale_python_black_options = '-l 119' - " Visual themeing set termguicolors "Enable 256 colors set t_Co=256 "Limit vim to 256 colors