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 1, 2024
1 parent 52f3c7c commit d412462
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,7 @@ def test_parse_valid_config(
if "dependencies" in config:
config["dependencies"] = list(map(str, config["dependencies"]))
if "optional-dependencies" in config:
config["optional-dependencies"] = {
k: list(map(str, v))
for k, v in config["optional-dependencies"].items()
}
config["optional-dependencies"] = {k: list(map(str, v)) for k, v in config["optional-dependencies"].items()}

check_config(config, advanced_data_regression)

Expand Down Expand Up @@ -300,10 +297,7 @@ def test_pep621_class_valid_config(
if "dependencies" in config:
config["dependencies"] = list(map(str, config["dependencies"]))
if "optional-dependencies" in config:
config["optional-dependencies"] = {
k: list(map(str, v))
for k, v in config["optional-dependencies"].items()
}
config["optional-dependencies"] = {k: list(map(str, v)) for k, v in config["optional-dependencies"].items()}

if "requires-python" in config and config["requires-python"] is not None:
config["requires-python"] = str(config["requires-python"])
Expand Down

0 comments on commit d412462

Please sign in to comment.