Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig committed Jan 9, 2024
1 parent c762977 commit 95a32c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ def lint(session: nox.Session):
_install_requirements(session)

session.log("Linting: generator and generated Python code.")
session.install("mypy", "ruff")
session.install("mypy", "ruff==0.1.6")

session.run("ruff", "--version")
session.run("mypy", "--version")

session.run("ruff", "check", ".")
session.run("ruff", "check", "--select=I001", ".")
session.run("ruff", "format", "--check", ".")
Expand All @@ -54,7 +58,7 @@ def format(session: nox.Session):


def _format_code(session: nox.Session):
session.install("ruff")
session.install("ruff==0.1.6")

session.run("ruff", "check", "--fix", "--select=I001", ".")
session.run("ruff", "format", ".")
Expand Down

0 comments on commit 95a32c9

Please sign in to comment.