diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8a2778b..f14a93f 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 + - id: ruff-check 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 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"))