Skip to content

Commit

Permalink
Add isort check to lint session (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolowicz committed Dec 1, 2020
1 parent bbe2cd8 commit 4e18422
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def blacken(session):

@nox.session(python="3.8")
def lint(session):
session.install("flake8==3.7.8", "black==19.3b0", "mypy==0.720")
session.install("flake8==3.7.8", "black==19.3b0", "isort==4.3.21", "mypy==0.720")
session.run(
"mypy",
"--disallow-untyped-defs",
Expand All @@ -90,6 +90,7 @@ def lint(session):
)
files = ["nox", "tests", "noxfile.py", "setup.py"]
session.run("black", "--check", *files)
session.run("isort", "--check", "--recursive", *files)
session.run("flake8", "nox", *files)


Expand Down

0 comments on commit 4e18422

Please sign in to comment.