Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 289a60e

Browse files
fix(config): update typo and code readability
1 parent e734a1b commit 289a60e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎commitizen/config/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def read_cfg(filepath: str | None = None) -> BaseConfig:
1515
conf = BaseConfig()
1616

1717
if filepath is not None:
18-
cfg_paths = (Path(filepath) for _ in range(1))
18+
cfg_paths = (_ for _ in (Path(filepath),))
1919
else:
2020
git_project_root = git.find_git_project_root()
2121
cfg_search_paths = [Path(".")]

‎tests/test_conf.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def test_load_cz_yaml_not_from_config_argument(_, tmpdir):
202202
_not_root_path.write(YAML_STR)
203203

204204
cfg = config.read_cfg(filepath="./not_in_root/.cz.yaml")
205-
yaml_cfg_by_class = config.YAMLConfig(data=JSON_STR, path=_not_root_path)
205+
yaml_cfg_by_class = config.YAMLConfig(data=YAML_STR, path=_not_root_path)
206206
assert cfg.settings == yaml_cfg_by_class._settings
207207

208208
def test_load_empty_pyproject_toml_from_config_argument(_, tmpdir):

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /