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 @@ -2,7 +2,7 @@ default_language_version:
python: "3.12"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
rev: "v6.0.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -15,13 +15,13 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.11.4"
rev: "v0.15.20"
hooks:
- id: ruff
args: [--fix]

- repo: https://github.com/psf/black
rev: "25.1.0"
- repo: https://github.com/psf/black-pre-commit-mirror
rev: "26.5.1"
hooks:
- id: black

Expand All @@ -32,12 +32,12 @@ repos:
exclude: docs/sphinx_pyodide/tests/test_directives\.py

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.10.0.1"
rev: "v0.11.0.1"
hooks:
- id: shellcheck

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.15.0"
rev: "v2.1.0"
hooks:
- id: mypy
args: []
Expand Down
2 changes: 1 addition & 1 deletion pyodide_lock/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def _check_wheel_compatible(path: Path, info: InfoSpec) -> None:
target_python = version_parse(info.python)
target_platform = info.platform + "_" + info.arch
try:
(name, version, build_number, tags) = parse_wheel_filename(str(path.name))
name, version, build_number, tags = parse_wheel_filename(str(path.name))
except (InvalidWheelFilename, InvalidVersion) as e:
raise RuntimeError(f"Wheel filename {path.name} is not valid") from e
python_binary_abi = f"cp{target_python.major}{target_python.minor}"
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ select = [
]
ignore = [
"E501", # line too long
"PLC0415", # `import` should be at the top-level of a file
]

[tool.pytest.ini_options]
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}

# marker environment for testing
_ENV = _get_marker_environment(**LOCK_EXAMPLE["info"]) # type:ignore[arg-type]
_ENV = _get_marker_environment(**LOCK_EXAMPLE["info"]) # type: ignore[arg-type]
# marker environment for testing, filtered only to numerical values
_ENV_NUM = {k: v for k, v in _ENV.items() if v[0] in "0123456789"}

Expand Down
Loading