diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 45ecdd6..c1e25f3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,4 +21,5 @@ jobs: python-version: "3.x" - uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0 - uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0 - - run: uvx safety check + - run: uv pip compile pyproject.toml --output-file requirements.txt + - run: uvx safety check --file requirements.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d67154..12d0a6e 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.20 + rev: v0.16.10 hooks: - id: ruff-check args: [--exit-non-zero-on-fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.5.1 + rev: 26.10.0 hooks: - id: black @@ -25,7 +25,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.37.4 + rev: 0.38.2 hooks: - id: check-dependabot - id: check-github-workflows @@ -36,7 +36,7 @@ repos: - id: actionlint - repo: https://github.com/pre-commit/mirrors-mypy - rev: v2.1.0 + rev: v2.4.0 hooks: - id: mypy args: @@ -50,27 +50,27 @@ repos: additional_dependencies: ["types-requests"] - repo: https://github.com/zizmorcore/zizmor-pre-commit - rev: v1.26.1 + rev: v1.30.1 hooks: - id: zizmor - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.25.1 + rev: v2.30.1 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.25 + rev: '0.26' hooks: - id: validate-pyproject - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 1.7.1 + rev: 1.9.0 hooks: - id: tox-ini-fmt - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.3 hooks: - id: codespell args: [--ignore-words-list=commitish] diff --git a/cherry_picker/test_cherry_picker.py b/cherry_picker/test_cherry_picker.py index f72eeac..35e8e14 100644 --- a/cherry_picker/test_cherry_picker.py +++ b/cherry_picker/test_cherry_picker.py @@ -679,13 +679,17 @@ def test_remove_commit_prefix(commit_message, expected): ), # ensure the existing commit prefix is replaced ( - "[3.7] [3.8] Fix broken `Show Source` links on documentation " - "pages (GH-3113) (GH-3114) (GH-3115)", - """[3.6] Fix broken `Show Source` links on documentation """ - """pages (GH-3113) (GH-3114) (GH-3115) + ( + "[3.7] [3.8] Fix broken `Show Source` links on documentation " + "pages (GH-3113) (GH-3114) (GH-3115)" + ), + ( + """[3.6] Fix broken `Show Source` links on documentation """ + """pages (GH-3113) (GH-3114) (GH-3115) (cherry picked from commit b9ff498793611d1c6a9b99df464812931a1e2d69) -Co-authored-by: PR Author """, +Co-authored-by: PR Author """ + ), ), ), )