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 7, 2024
1 parent 81cff63 commit 155ffa9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

import pytest

from piptools.build import StaticProjectMetadata, ProjectMetadata, build_project_metadata
from piptools.build import (
ProjectMetadata,
StaticProjectMetadata,
build_project_metadata,
)
from tests.constants import PACKAGES_PATH


Expand Down Expand Up @@ -50,7 +54,7 @@ def test_build_project_metadata_static(tmp_path):
requirements = [(r.name, r.extras, str(r.markers)) for r in metadata.requirements]
requirements.sort(key=lambda x: x[0])
assert requirements == [
('fake_direct_extra_runtime_dep', {"with_its_own_extra"}, 'extra == "x"'),
('fake_direct_runtime_dep', set(), 'None')
("fake_direct_extra_runtime_dep", {"with_its_own_extra"}, 'extra == "x"'),
("fake_direct_runtime_dep", set(), "None"),
]
assert metadata.extras == ("x",)

0 comments on commit 155ffa9

Please sign in to comment.