diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1aab0a4..03e914e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,11 @@ repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.15.11 + hooks: + - id: ruff-check + args: [--exit-non-zero-on-fix] + - id: ruff-format + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: @@ -12,36 +19,34 @@ repos: - id: forbid-submodules - id: trailing-whitespace - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.8 - hooks: - - id: ruff-check - args: [--exit-non-zero-on-fix] - - id: ruff-format - - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.33.2 + rev: 0.37.1 hooks: - id: check-dependabot - id: check-github-workflows - repo: https://github.com/rhysd/actionlint - rev: v1.7.7 + rev: v1.7.12 hooks: - id: actionlint + - repo: https://github.com/zizmorcore/zizmor-pre-commit + rev: v1.24.1 + hooks: + - id: zizmor + - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.6.0 + rev: v2.21.1 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.24.1 + rev: v0.25 hooks: - id: validate-pyproject - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 1.6.0 + rev: 1.7.1 hooks: - id: tox-ini-fmt diff --git a/pyproject.toml b/pyproject.toml index c79378c..800cbc6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,12 +43,8 @@ scripts.blurb = "blurb._cli:main" [tool.hatch] version.source = "vcs" - -[tool.hatch.build.hooks.vcs] -version-file = "src/blurb/_version.py" - -[tool.hatch.version.raw-options] -local_scheme = "no-local-version" +version.raw-options.local_scheme = "no-local-version" +build.hooks.vcs.version-file = "src/blurb/_version.py" [tool.pyproject-fmt] max_supported_python = "3.15"