diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7470f3f..393d4cd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,4 +18,4 @@ jobs: with: python-version: "3.x" cache: pip - - uses: pre-commit/action@v3.0.1 + - uses: j178/prek-action@v1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2de5927..0fcd4c4 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.14.10 + rev: v0.15.6 hooks: - id: ruff-check args: [--exit-non-zero-on-fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.3.1 hooks: - id: black args: [--target-version=py311] @@ -25,12 +25,12 @@ repos: - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.11.1 + rev: v2.19.0 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.24.1 + rev: v0.25 hooks: - id: validate-pyproject @@ -40,7 +40,7 @@ repos: - id: tox-ini-fmt - repo: https://github.com/rbubley/mirrors-prettier - rev: v3.7.4 + rev: v3.8.1 hooks: - id: prettier args: [--prose-wrap=always, --print-width=88] diff --git a/bpo_redirecter.py b/bpo_redirecter.py index d18fb79..182df6c 100755 --- a/bpo_redirecter.py +++ b/bpo_redirecter.py @@ -2,6 +2,7 @@ """ Update BPO links to GH issues in a file or directory of files """ + from __future__ import annotations import argparse diff --git a/conflicted.py b/conflicted.py index d0d34aa..967d413 100644 --- a/conflicted.py +++ b/conflicted.py @@ -2,6 +2,7 @@ """ Find which of my PRs have merge conflicts. """ + from __future__ import annotations import argparse diff --git a/github-repos.py b/github-repos.py index af2a41c..99f538e 100644 --- a/github-repos.py +++ b/github-repos.py @@ -2,6 +2,7 @@ """ Show which non-fork repos I created this year. """ + from __future__ import annotations import argparse diff --git a/hacktoberfest.py b/hacktoberfest.py index b80f0b1..db5fe45 100644 --- a/hacktoberfest.py +++ b/hacktoberfest.py @@ -4,6 +4,7 @@ You can then run `diffstat /tmp/hacktoberfest/*.diff` to get a summary: 714 files changed, 9843 insertions(+), 13719 deletions(-) """ + from __future__ import annotations import argparse diff --git a/pyproject.toml b/pyproject.toml index 41be1a6..9b7b8c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,5 @@ [tool.ruff] fix = true - lint.select = [ "C4", # flake8-comprehensions "E", # pycodestyle errors diff --git a/repo.py b/repo.py index 22e2e8d..56d257e 100755 --- a/repo.py +++ b/repo.py @@ -15,6 +15,7 @@ repo branches upstream pulls """ + from __future__ import annotations import argparse diff --git a/upgrade_actions.py b/upgrade_actions.py index c42915e..4df3567 100644 --- a/upgrade_actions.py +++ b/upgrade_actions.py @@ -11,6 +11,7 @@ uv run ~/github/github-tools/upgrade_actions.py """ + from __future__ import annotations import argparse