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.
This commit is contained in:
Trysdyn Black 2023-05-11 13:51:40 -07:00
parent 7d28c9a266
commit 8b2daa45c0
2 changed files with 15 additions and 5 deletions

15
.pylintrc Normal file
View file

@ -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

5
.vimrc
View file

@ -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