Skip to content

Commit

Permalink
Use Flake8-pyproject to enable flake8 again
Browse files Browse the repository at this point in the history
  • Loading branch information
chezou committed Feb 20, 2023
1 parent 9d80694 commit 2fc62c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@

@nox.session
def lint(session):
lint_tools = ["black", "isort", "flake8", "mypy", "types-setuptools"]
lint_tools = [
"black",
"isort",
"flake8",
"mypy",
"types-setuptools",
"Flake8-pyproject",
]
targets = ["tabula", "tests", "noxfile.py"]
session.install(*lint_tools)
session.run("flake8", *targets)
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ dev = [
"black",
"isort",
"mypy",
"Flake8-pyproject",
]
test = ["pytest"]
doc = [
Expand All @@ -60,7 +61,7 @@ doc = [
[tool.isort]
profile = "black"

[tools.flake8]
[tool.flake8]
ignore = ["E203", "W503"]
max-line-length = 88
exclude = [
Expand Down

0 comments on commit 2fc62c9

Please sign in to comment.