Skip to content

Commit

Permalink
Fix test_python_versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
trexfeathers committed Sep 25, 2024
1 parent 562a833 commit c7f288f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions cf_units/tests/test_coding_standards.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ def test_python_versions():

# Places that are checked:
pyproject_toml_file = REPO_DIR / "pyproject.toml"
setup_cfg_file = REPO_DIR / "setup.cfg"
tox_file = REPO_DIR / "tox.ini"
ci_locks_file = workflows_dir / "ci-locks.yml"
ci_tests_file = workflows_dir / "ci-tests.yml"
Expand All @@ -137,19 +136,19 @@ def test_python_versions():
text_searches: list[tuple[Path, str]] = [
(
pyproject_toml_file,
"target-version = ["
+ ", ".join([f'"py{p}"' for p in supported_strip])
+ "]",
),
(
setup_cfg_file,
"\n ".join(
[
f"Programming Language :: Python :: {ver}"
f'"Programming Language :: Python :: {ver}",'
for ver in supported
]
),
),
(
pyproject_toml_file,
"target-version = ["
+ ", ".join([f'"py{p}"' for p in supported_strip])
+ "]",
),
(
tox_file,
"[testenv:py{" + ",".join(supported_strip) + "}-lock]",
Expand Down

0 comments on commit c7f288f

Please sign in to comment.