diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b7ddb76..7d67154 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.9 + rev: v0.15.20 hooks: - id: ruff-check args: [--exit-non-zero-on-fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.3.1 + rev: 26.5.1 hooks: - id: black @@ -25,7 +25,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.37.1 + rev: 0.37.4 hooks: - id: check-dependabot - id: check-github-workflows @@ -36,7 +36,7 @@ repos: - id: actionlint - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.20.0 + rev: v2.1.0 hooks: - id: mypy args: @@ -50,12 +50,12 @@ repos: additional_dependencies: ["types-requests"] - repo: https://github.com/zizmorcore/zizmor-pre-commit - rev: v1.23.1 + rev: v1.26.1 hooks: - id: zizmor - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.21.0 + rev: v2.25.1 hooks: - id: pyproject-fmt diff --git a/pyproject.toml b/pyproject.toml index a7c9684..713d304 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,11 +40,11 @@ urls.Homepage = "https://github.com/python/cherry-picker" scripts.cherry_picker = "cherry_picker.cherry_picker:cherry_pick_cli" [tool.hatch] -build.hooks.vcs.version-file = "cherry_picker/_version.py" version.source = "vcs" +version.raw-options.local_scheme = "no-local-version" # Change regex to match tags like "cherry-picker-v2.2.0". version.tag-pattern = "^cherry-picker-(?P[vV]?\\d+(?:\\.\\d+){0,2}[^\\+]*)(?:\\+.*)?$" -version.raw-options.local_scheme = "no-local-version" +build.hooks.vcs.version-file = "cherry_picker/_version.py" [tool.ruff] fix = true