Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 7b83e50

Browse files
author
David Robertson
committed
Move flake8's config to its own file
1 parent d2aaca8 commit 7b83e50

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.flake8

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# TODO: incorporate this into pyproject.toml if flake8 supports it in the future.
2+
# See https://github.com/PyCQA/flake8/issues/234
3+
[flake8]
4+
# see https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
5+
# for error codes. The ones we ignore are:
6+
# W503: line break before binary operator
7+
# W504: line break after binary operator
8+
# E203: whitespace before ':' (which is contrary to pep8?)
9+
# E731: do not assign a lambda expression, use a def
10+
# E501: Line too long (black enforces this for us)
11+
ignore=W503,W504,E203,E731,E501

setup.cfg

-9
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,3 @@ ignore =
77
pylint.cfg
88
tox.ini
99

10-
[flake8]
11-
# see https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
12-
# for error codes. The ones we ignore are:
13-
# W503: line break before binary operator
14-
# W504: line break after binary operator
15-
# E203: whitespace before ':' (which is contrary to pep8?)
16-
# E731: do not assign a lambda expression, use a def
17-
# E501: Line too long (black enforces this for us)
18-
ignore=W503,W504,E203,E731,E501

0 commit comments

Comments
 (0)