Skip to content

Commit

Permalink
enable flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed May 15, 2022
1 parent 7b59028 commit 13369f5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[flake8]
max-line-length = 88
ignore =
# E203: whitespace before ':' (black fails to be PEP8 compliant)
E203
# E731: do not assign a lambda expression, use a def
E731
# W503: line break before binary operator (flake8 is not PEP8 compliant)
W503
# W504: line break after binary operator (flake8 is not PEP8 compliant)
W504
show-source = True
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ include COPYRIGHT.txt
include pyproject.toml
include setup.cfg
include .coveragerc
include .flake8
include tox.ini
include rtd.txt

Expand Down
2 changes: 1 addition & 1 deletion tests/test_it.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ def stack(self):
pf.inspect = MockInspect()
self.assertEqual(pf.caller_package(), None)

import xml
import xml # noqa F401

pf.inspect.items = [(Mock(f_globals={"__name__": "xml"}),)]

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ skip_install = True
commands =
isort --check-only --df src/pyramid_jinja2 tests demo
black --check --diff .
flake8 src/pyramid_jinja2/ tests demo
check-manifest
# flake8 src/pyramid_jinja2/ tests demo
# build sdist/wheel
python -m build .
twine check dist/*
Expand Down

0 comments on commit 13369f5

Please sign in to comment.