Skip to content

Commit c9b4810

Browse files
DX: Work-around: Tox crashes on flake8 format setting.
- Running flake8 via tox, e.g., `tox -e flake8` crashes. Setuptools uses configparser to read the config, which throws configparser.InterpolationMissingOptionError because of the percent (%) symbols in the format string. - Ref: pytest-dev/pytest#3062 pypa/pip#5182
1 parent d3cc04d commit c9b4810

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# vim:tw=0:ts=2:sw=2:et:norl:ft=config
2+
[flake8]
3+
# Add a space after the path to make the output path easier to double-click-copy.
4+
format=%(path)s %(row)d:%(col)d: %(code)s %(text)s
5+

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ graft tests
3939
# - NOTE: Order this like `git ls-files`, to keep it easy to maintain.
4040
exclude .coveragerc
4141
exclude .editorconfig
42+
exclude .flake8
4243
exclude .gitignore
4344
exclude .ignore.example
4445
exclude .readthedocs.yml

setup.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ exclude =
167167
htmlcov/
168168
.pytest_cache/
169169
__pycache__
170-
# Add a space after the path to make the output path easier to double-click-copy.
171-
format=%%(path)s %%(row)d:%%(col)d: %%(code)s %%(text)s
172170
max-line-length = 89
173171
# See list of error codes (we can list here to ignore):
174172
#

0 commit comments

Comments
 (0)