Add flake8-builtins to linters (#1254)

* Add flake8-builtins linter

* Update flake8-builtins to 2.0.0
pull/1242/head
Gulshan Singh 3 years ago committed by GitHub
parent c3c8975b7a
commit 29c9d74f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -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…
Cancel
Save