Skip to content

Commit 867486d

Browse files
author
David Robertson
committed
flake8
1 parent e89d9a7 commit 867486d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.flake8

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Ideally this would be in pyproject.toml, but that's not possible right now. See
2+
# https://github.com/PyCQA/flake8/issues/234
3+
# https://github.com/johnthagen/python-blueprint/issues/29#issuecomment-1003437646
4+
[flake8]
5+
# see https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
6+
# and https://flake8.pycqa.org/en/latest/user/error-codes.html
7+
# for error codes. The ones we ignore are:
8+
# W503: line break before binary operator
9+
# W504: line break after binary operator
10+
# E203: whitespace before ':' (which is contrary to pep8?)
11+
# E731: do not assign a lambda expression, use a def
12+
# E501: Line too long (black enforces this for us)
13+
ignore=W503,W504,E203,E731,E501
14+
exclude=dist,.venv

0 commit comments

Comments
 (0)