Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ extend-select = [
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020

]
ignore = [
"ISC001", # May collide with formatter
Expand Down
4 changes: 2 additions & 2 deletions src/repo_review/ghpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
Loading