Skip to content

Commit

Permalink
Skip setuptools-scm generated _version.py in isort config, remove
Browse files Browse the repository at this point in the history
`pre-commit autoupdate` from pre-commit test env commands*

*Avoids issue where intentionally pinned or held-back pre-commit repos
are unintentionally forced to be updated
  • Loading branch information
JonathanWillitts committed Feb 27, 2025
1 parent 616e918 commit 0bc8fb9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extend-exclude = '''^(.*\/)*\b(migrations)\b($|\/.*$)'''
[tool.isort]
profile = "black"
py_version = "312"
skip = [".tox", ".eggs", "migrations"]
skip = [".tox", ".eggs", "migrations", "_version.py"]

[tool.coverage.run]
parallel = false
Expand Down Expand Up @@ -84,6 +84,5 @@ commands =
python --version
pip --version
pip freeze
pre-commit autoupdate
pre-commit run --all-files
"""

0 comments on commit 0bc8fb9

Please sign in to comment.