mirror of https://github.com/pwndbg/pwndbg
Add flake8-builtins to linters (#1254)
* Add flake8-builtins linter * Update flake8-builtins to 2.0.0
This commit is contained in:
parent
c3c8975b7a
commit
29c9d74f9b
|
@ -2,6 +2,7 @@ black==22.8.0
|
|||
coverage==6.2; python_version < '3.7'
|
||||
coverage==6.4.4; python_version >= '3.7'
|
||||
flake8==5.0.4
|
||||
flake8-builtins==2.0.0
|
||||
testresources==2.0.1
|
||||
isort==5.10.1
|
||||
pytest==7.0.1; python_version < '3.7'
|
||||
|
|
19
setup.cfg
19
setup.cfg
|
@ -23,7 +23,9 @@ ignore =
|
|||
# undefined name name
|
||||
F821,
|
||||
# local variable name is assigned to but never used
|
||||
F841
|
||||
F841,
|
||||
# class attribute is shadowing a python builtin
|
||||
A003
|
||||
|
||||
per-file-ignores =
|
||||
# Unused imports in __init__.py are fine
|
||||
|
@ -31,3 +33,18 @@ per-file-ignores =
|
|||
|
||||
max-line-length = 100
|
||||
exclude = gdb-pt-dump
|
||||
|
||||
# flake8-builtins should allow these builtins to be shadowed
|
||||
builtins-ignorelist =
|
||||
all,
|
||||
breakpoint,
|
||||
copyright,
|
||||
dir,
|
||||
exit,
|
||||
format,
|
||||
hex,
|
||||
map,
|
||||
max,
|
||||
min,
|
||||
next,
|
||||
type
|
||||
|
|
Loading…
Reference in New Issue