From af7b70aa8cbfebc19e5dc3bc17839a6b268fb656 Mon Sep 17 00:00:00 2001 From: Claudio Jolowicz Date: Sat, 28 Nov 2020 15:33:36 +0100 Subject: [PATCH] Add isort check to lint session --- noxfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 7d3094e2..063e36cb 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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", @@ -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)