Skip to content

Commit

Permalink
DEV: Rewrite nox session lint to match what CI does
Browse files Browse the repository at this point in the history
  • Loading branch information
NickleDave committed Mar 1, 2023
1 parent 2a58fc1 commit ddfaaba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ def lint(session):
"""
Run the linter.
"""
session.install("pre-commit")
session.run("pre-commit", "run", "--all-files", *session.posargs)
session.install(".[dev]")
# run isort first since black disagrees with it
session.run("isort", "./src")
session.run("black", "./src", "--line-length=120")
session.run("flake8", "./src", "--max-line-length", "120", "--exclude", "./src/crowsetta/_vendor")


@nox.session
Expand Down

0 comments on commit ddfaaba

Please sign in to comment.