Skip to content

Commit f80e7e5

Browse files
committed
Use flake8-alfred to forbid use of bytes()
1 parent 4fc2e98 commit f80e7e5

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.flake8

+4
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ exclude =
88
hypothesis-python/tests/py2/*,
99
test_lambda_formatting.py
1010
ignore = F811,D1,D205,D209,D213,D400,D401,D999,D202
11+
12+
# Use flake8-alfred to forbid builtins that require compatibility wrappers.
13+
warn-symbols=
14+
bytes=Instead of bytes(), use hbytes() or binary_type

requirements/tools.in

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ coverage
44
django
55
dpcontracts
66
flake8
7+
flake8-alfred
78
flake8-docstrings
89
flaky
910
ipython

requirements/tools.txt

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ docformatter==1.0 # via pyformat
2626
docutils==0.14 # via readme-renderer, restructuredtext-lint, sphinx
2727
dparse==0.4.1 # via pyupio, safety
2828
dpcontracts==0.6.0
29+
flake8-alfred==1.1.1
2930
flake8-docstrings==1.3.0
3031
flake8-polyfill==1.0.2 # via flake8-docstrings
3132
flake8==3.5.0

0 commit comments

Comments
 (0)