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 16b37ee

Browse files
refactor: iter_modules only accepts str
1 parent 55841d6 commit 16b37ee

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎commitizen/cz/__init__.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import importlib
22
import pkgutil
33
import warnings
4-
from pathlib import Path
54
from typing import Dict, Iterable, Type
65

76
from commitizen.cz.base import BaseCommitizen
@@ -10,7 +9,7 @@
109
from commitizen.cz.jira import JiraSmartCz
1110

1211

13-
def discover_plugins(path: Iterable[Path] = None) -> Dict[str, Type[BaseCommitizen]]:
12+
def discover_plugins(path: Iterable[str] = None) -> Dict[str, Type[BaseCommitizen]]:
1413
"""Discover commitizen plugins on the path
1514
1615
Args:

‎tests/test_factory.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_discover_plugins(module_content, plugin_name, expected_plugins, tmp_pat
3838

3939
sys.path.append(tmp_path.as_posix())
4040
with pytest.warns(UserWarning) as record:
41-
discovered_plugins = discover_plugins([tmp_path])
41+
discovered_plugins = discover_plugins([tmp_path.as_posix()])
4242
sys.path.pop()
4343

4444
assert (

0 commit comments

Comments
(0)

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