From 1981239478f21faa962fc49b99eb4076b6ee1190 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 26 Nov 2017 21:22:33 +0100 Subject: [PATCH] Add flake8-builtins --- .flake8 | 4 +++- misc/requirements/requirements-flake8.txt | 1 + misc/requirements/requirements-flake8.txt-raw | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.flake8 b/.flake8 index 61fdc0326..74f68c27a 100644 --- a/.flake8 +++ b/.flake8 @@ -29,12 +29,14 @@ exclude = .*,__pycache__,resources.py # D403: First word of the first line should be properly capitalized # (false-positives) # D413: Missing blank line after last section (not in pep257?) +# A003: Builtin name for class attribute (needed for attrs) ignore = E128,E226,E265,E501,E402,E266,E722,E731, F401, N802, P101,P102,P103, - D102,D103,D106,D107,D104,D105,D209,D211,D401,D402,D403,D413 + D102,D103,D106,D107,D104,D105,D209,D211,D401,D402,D403,D413, + A003 min-version = 3.4.0 max-complexity = 12 per-file-ignores = diff --git a/misc/requirements/requirements-flake8.txt b/misc/requirements/requirements-flake8.txt index 5c4e97e4e..661f9601e 100644 --- a/misc/requirements/requirements-flake8.txt +++ b/misc/requirements/requirements-flake8.txt @@ -1,6 +1,7 @@ # This file is automatically generated by scripts/dev/recompile_requirements.py flake8==3.5.0 +flake8-builtins==1.0 flake8-copyright==0.2.0 flake8-debugger==3.0.0 flake8-deprecated==1.3 diff --git a/misc/requirements/requirements-flake8.txt-raw b/misc/requirements/requirements-flake8.txt-raw index 6836bb979..0bfdab644 100644 --- a/misc/requirements/requirements-flake8.txt-raw +++ b/misc/requirements/requirements-flake8.txt-raw @@ -1,4 +1,5 @@ flake8 +flake8-builtins flake8-copyright flake8-debugger flake8-deprecated