Skip to content

Commit

Permalink
isort diff and skips
Browse files Browse the repository at this point in the history
  • Loading branch information
omry committed Apr 13, 2020
1 parent f73a402 commit 079c325
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def lint_plugins(session):
for plugin in plugins:
session.chdir(os.path.join("plugins", plugin["path"]))
session.run("black", "--check", ".", silent=SILENT)
session.run("isort", "--check", ".", silent=SILENT)
session.run("isort", "--check", "--diff", ".", silent=SILENT)
session.run("mypy", ".", "--strict", silent=SILENT)
session.chdir(BASE)

Expand All @@ -187,7 +187,15 @@ def lint_plugins(session):
def lint(session):
install_lint_deps(session)
session.run("black", "--check", ".", silent=SILENT)
session.run("isort", "--check", ".", silent=SILENT)
session.run(
"isort",
"--check",
"--diff",
".",
"--skip=plugins",
"--skip=.nox",
silent=SILENT,
)
session.run("mypy", ".", "--strict", silent=SILENT)
session.run("flake8", "--config", ".circleci/flake8_py3.cfg")
# Mypy for examples
Expand Down

0 comments on commit 079c325

Please sign in to comment.