Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Apr 9, 2021
1 parent 092e7f7 commit 5986d08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
6 changes: 4 additions & 2 deletions repo_helper/files/ci_cd.py
Expand Up @@ -595,8 +595,10 @@ def ensure_bumpversion(repo_path: pathlib.Path, templates: jinja2.Environment) -
if "bumpversion:file:setup.cfg" in bv.sections():
setup_cfg_section = bv["bumpversion:file:setup.cfg"]
if (
"search" not in setup_cfg_section
or ("search" in setup_cfg_section and setup_cfg_section["search"].value == "name = {current_version}")
"search" not in setup_cfg_section or (
"search" in setup_cfg_section
and setup_cfg_section["search"].value == "name = {current_version}"
)
):
setup_cfg_section["search"] = "version = {current_version}"
setup_cfg_section["replace"] = "version = {new_version}"
Expand Down
12 changes: 0 additions & 12 deletions tests/test_files/test_ci_cd.py
Expand Up @@ -69,10 +69,6 @@ def test_github_ci_case_1(
advanced_file_regression: AdvancedFileRegressionFixture,
advanced_data_regression: AdvancedDataRegressionFixture,
):
demo_environment.globals["gh_actions_versions"] = {
"3.6": "py36, mypy",
"3.7": "py37, build",
}

managed_files = make_github_ci(tmp_pathplus, demo_environment)
advanced_data_regression.check(managed_files, basename="github_ci_managed_files")
Expand Down Expand Up @@ -440,14 +436,6 @@ def test_make_github_linux_case_4(
demo_environment.globals["python_versions"]
)

demo_environment.globals["gh_actions_versions"] = {
"3.6": "py36, mypy",
"3.7": "py37, build",
"3.8": "py38, build",
"3.9": "py39, build",
"3.10.0-alpha.3": "py310-dev, build",
}

managed_files = make_github_ci(tmp_pathplus, demo_environment)
advanced_data_regression.check(managed_files, basename="github_ci_managed_files")

Expand Down

0 comments on commit 5986d08

Please sign in to comment.