Skip to content

Commit faf62dc

Browse files
committed
chore: updates for Ruff updates
Signed-off-by: Henry Schreiner <[email protected]>
1 parent e51ce5a commit faf62dc

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
2222
rev: "v0.12.8"
2323
hooks:
24-
- id: ruff
24+
- id: ruff-check
2525
args: ["--fix", "--show-fixes"]
2626
- id: ruff-format
2727

tests/test_internals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ def test_all() -> None:
1818
def test_project_table_all() -> None:
1919
if sys.version_info < (3, 11):
2020
pytest.importorskip("typing_extensions")
21-
import pyproject_metadata.project_table
21+
import pyproject_metadata.project_table # noqa: PLC0415
2222

2323
assert "annotations" not in dir(pyproject_metadata.project_table)

tests/test_standard_metadata.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,11 +1259,12 @@ def test_license_file_24(
12591259
pre_spdx = (
12601260
metadata_version in pyproject_metadata.constants.PRE_SPDX_METADATA_VERSIONS
12611261
)
1262-
with (
1262+
ctx = (
12631263
contextlib.nullcontext()
12641264
if pre_spdx
12651265
else pytest.warns(pyproject_metadata.errors.ConfigurationWarning)
1266-
):
1266+
)
1267+
with ctx:
12671268
metadata = pyproject_metadata.StandardMetadata.from_pyproject(
12681269
{
12691270
"project": {

0 commit comments

Comments
 (0)