From 4e1842246d8b005e0dadf4b0f3e9d1123cefa651 Mon Sep 17 00:00:00 2001 From: Claudio Jolowicz Date: Tue, 1 Dec 2020 14:45:17 +0100 Subject: [PATCH] Add isort check to lint session (#366) --- 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)