Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy up linting #95

Merged
merged 11 commits into from
Aug 14, 2024
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ repos:
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
11 changes: 3 additions & 8 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import nox # type: ignore

nox.options.sessions = (
# "lint",
"lint",
"test",
# "type_check"
"docs",
Expand Down Expand Up @@ -107,16 +107,11 @@ def lint(session):
args = session.posargs or locations
install_with_constraints(
session,
"flake8",
"flake8-annotations",
"flake8-bandit",
"flake8-bugbear",
"flake8-docstrings",
"darglint",
"ruff",
)
session.run("flake8", *args)
session.run("ruff check", *args)
session.run("ruff", "check", *args)
session.run("ruff", "format", *args)


@nox.session(python="3.12")
Expand Down
Loading
Loading