]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Run isort in the nox check session (#379)
authorJamie Hewland <jhewland@gmail.com>
Tue, 24 Sep 2019 19:43:21 +0000 (21:43 +0200)
committerFlorimond Manca <florimond.manca@gmail.com>
Tue, 24 Sep 2019 19:43:21 +0000 (21:43 +0200)
noxfile.py

index 64dae6252b3e30e3d7a16877f02f6c166ffc2f92..c7ada4fb9ea233cc4d7653520f4c38a14bd940d7 100644 (file)
@@ -20,12 +20,15 @@ def lint(session):
 @nox.session(reuse_venv=True)
 def check(session):
     session.install(
-        "black", "flake8", "flake8-bugbear", "flake8-comprehensions", "mypy"
+        "black", "flake8", "flake8-bugbear", "flake8-comprehensions", "isort", "mypy"
     )
 
     session.run("black", "--check", "--diff", "--target-version=py36", *source_files)
     session.run("flake8", *source_files)
     session.run("mypy", "httpx")
+    session.run(
+        "isort", "--check", "--diff", "--project=httpx", "--recursive", *source_files
+    )
 
 
 @nox.session(reuse_venv=True)