Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 27, 2025
1 parent 57053ce commit 89f9a73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
"RFC822Policy",
"Readme",
"StandardMetadata",
"field_to_metadata",
"extras_build_system",
"extras_project",
"extras_top_level",
"field_to_metadata",
]


Expand Down
6 changes: 4 additions & 2 deletions tests/test_standard_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1259,8 +1259,10 @@ def test_license_file_24(
pre_spdx = (
metadata_version in pyproject_metadata.constants.PRE_SPDX_METADATA_VERSIONS
)
with contextlib.nullcontext() if pre_spdx else pytest.warns(
pyproject_metadata.errors.ConfigurationWarning
with (
contextlib.nullcontext()
if pre_spdx
else pytest.warns(pyproject_metadata.errors.ConfigurationWarning)
):
metadata = pyproject_metadata.StandardMetadata.from_pyproject(
{
Expand Down

0 comments on commit 89f9a73

Please sign in to comment.