Skip to content

Commit

Permalink
Run lint _once_, not once per Python version
Browse files Browse the repository at this point in the history
AFAICS, there is no difference in behavior when running `mypy` or
`ruff check .` in a Python environment based on v3.7 or one based on
v3.12. These tools should behave the same irrespective of the Python
version in the surrounding environment. Hence, there is no longer any
need to run nox's "lint" session under each of our supported Python
versions.

This will divide the time spent on linters by 6.
  • Loading branch information
jherland committed May 13, 2024
1 parent 5dac7f6 commit 1755d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def self_test(session):
session.run("fawltydeps")


@nox.session(python=python_versions)
@nox.session
def lint(session):
install_groups(session, include=["lint"])
session.run("mypy")
Expand Down

0 comments on commit 1755d63

Please sign in to comment.