in noxfile.py [0:0]
def lint(session: nox.Session):
"""Runs linters and fixers"""
try:
session.run("poetry", "install", "--all-extras", external=True)
session.run("poetry", "check", "--lock", external=True)
session.run("pyright", SRC)
session.run("flake8", SRC)
format_with_args(session, SRC, "--check")
except Exception:
session.error(
"linting has failed. Run 'make format' to fix formatting and fix other errors manually"
)