Skip to content

Commit 025346f

Browse files
committed
handle the correct types on extend_ignore
1 parent 2cc8306 commit 025346f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ni_python_styleguide/_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def format(obj, file_or_dir, check: bool, diff: bool):
213213
_fix.fix(
214214
exclude=obj["EXCLUDE"],
215215
app_import_names=obj["APP_IMPORT_NAMES"],
216-
extend_ignore=[],
216+
extend_ignore=None,
217217
file_or_dir=file_or_dir or [pathlib.Path.cwd()],
218218
aggressive=False,
219219
check=check,

ni_python_styleguide/_fix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def fix(
6666
"gitwildmatch",
6767
["*.py"]
6868
+ [f"!{exclude_}" for exclude_ in exclude.split(",") if exclude_]
69-
+ [f"!{ignore_}" for ignore_ in extend_ignore if ignore_],
69+
+ [f"!{ignore_}" for ignore_ in (extend_ignore or "").split(",") if ignore_],
7070
)
7171
all_files = []
7272
for file_or_dir_ in file_or_dir:

0 commit comments

Comments
 (0)