Skip to content

Commit 573784d

Browse files
committed
lint: Switch nox -s lint to pre-commit
1 parent 518d90b commit 573784d

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

noxfile.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,8 @@ def test(session):
2626

2727
@nox.session(python=["3.5", "3.6", "3.7", "3.8"])
2828
def lint(session):
29-
session.install("-r", "tools/requirements-lint.txt")
30-
session.run(
31-
"flake8",
32-
"--max-complexity=24",
33-
"--statistics",
34-
"--benchmark",
35-
"--ignore=E5,F4",
36-
"junction/",
37-
)
38-
# TODO: Add tests/ to the arguments above.
29+
session.install("pre-commit")
30+
session.run("pre-commit", "run", "--all-files")
3931

4032

4133
@nox.session(python="3.5")

tools/requirements-lint.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)