From 1ced567c37205934272e80908d1dfb3f8101efef Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 21:14:51 +0000 Subject: [PATCH 1/2] chore(deps): update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.12.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.12...v0.12.7) - [github.com/rbubley/mirrors-prettier: v3.5.3 → v3.6.2](https://github.com/rbubley/mirrors-prettier/compare/v3.5.3...v3.6.2) - [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.17.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.16.0...v1.17.1) - [github.com/henryiii/validate-pyproject-schema-store: 2025.05.12 → 2025.07.28](https://github.com/henryiii/validate-pyproject-schema-store/compare/2025.05.12...2025.07.28) - [github.com/python-jsonschema/check-jsonschema: 0.33.0 → 0.33.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.33.0...0.33.2) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8a2778b..44129ff 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,14 +11,14 @@ repos: additional_dependencies: [black==24.*] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.11.12" + rev: "v0.12.7" hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.5.3" + rev: "v3.6.2" hooks: - id: prettier types_or: [yaml, markdown, html, css, scss, javascript, json] @@ -45,7 +45,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.0 + rev: v1.17.1 hooks: - id: mypy files: (src|web|tests) @@ -79,12 +79,12 @@ repos: exclude: .pre-commit-config.yaml - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2025.05.12 + rev: 2025.07.28 hooks: - id: validate-pyproject - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.33.0 + rev: 0.33.2 hooks: - id: check-dependabot - id: check-github-workflows From f6c658faa971c163023ea8fc0db5f73e0cb8ba44 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 18 Aug 2025 17:58:16 -0400 Subject: [PATCH 2/2] chore: update for ruff updates Signed-off-by: Henry Schreiner --- .pre-commit-config.yaml | 2 +- pyproject.toml | 1 + src/repo_review/ghpath.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 44129ff..f14a93f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.12.7" hooks: - - id: ruff + - id: ruff-check args: ["--fix", "--show-fixes"] - id: ruff-format diff --git a/pyproject.toml b/pyproject.toml index 1fa3bdc..04527f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -227,6 +227,7 @@ extend-select = [ "T20", # flake8-print "UP", # pyupgrade "YTT", # flake8-2020 + ] ignore = [ "ISC001", # May collide with formatter diff --git a/src/repo_review/ghpath.py b/src/repo_review/ghpath.py index 30ca20a..a93d77c 100644 --- a/src/repo_review/ghpath.py +++ b/src/repo_review/ghpath.py @@ -50,11 +50,11 @@ class GHPath(Traversable): def open_url(url: str) -> io.StringIO: "This method can be overridden manually for WASM. Supports pyodide currently." if sys.platform == "emscripten": - import pyodide.http + import pyodide.http # noqa: PLC0415 return pyodide.http.open_url(url) - import urllib.request # pylint: disable=import-outside-toplevel + import urllib.request # noqa: PLC0415 with urllib.request.urlopen(url) as response: return io.StringIO(response.read().decode("utf-8"))