File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 21
21
- repo : https://github.com/astral-sh/ruff-pre-commit
22
22
rev : " v0.12.8"
23
23
hooks :
24
- - id : ruff
24
+ - id : ruff-check
25
25
args : ["--fix", "--show-fixes"]
26
26
- id : ruff-format
27
27
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ def test_all() -> None:
18
18
def test_project_table_all () -> None :
19
19
if sys .version_info < (3 , 11 ):
20
20
pytest .importorskip ("typing_extensions" )
21
- import pyproject_metadata .project_table
21
+ import pyproject_metadata .project_table # noqa: PLC0415
22
22
23
23
assert "annotations" not in dir (pyproject_metadata .project_table )
Original file line number Diff line number Diff line change @@ -1259,11 +1259,12 @@ def test_license_file_24(
1259
1259
pre_spdx = (
1260
1260
metadata_version in pyproject_metadata .constants .PRE_SPDX_METADATA_VERSIONS
1261
1261
)
1262
- with (
1262
+ ctx = (
1263
1263
contextlib .nullcontext ()
1264
1264
if pre_spdx
1265
1265
else pytest .warns (pyproject_metadata .errors .ConfigurationWarning )
1266
- ):
1266
+ )
1267
+ with ctx :
1267
1268
metadata = pyproject_metadata .StandardMetadata .from_pyproject (
1268
1269
{
1269
1270
"project" : {
You can’t perform that action at this time.
0 commit comments