Skip to content

Commit cad0f12

Browse files
committed
fix(config): prevent crash if no per-file rules exist
1 parent 61c6ea2 commit cad0f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proselint/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def apply_file_config(config: Config, file: Path) -> dict[str, bool]:
7878
return _deepmerge_dicts(
7979
config["checks"],
8080
config["file_checks"].get(
81-
next(filter(file.match, config["file_checks"])), {}
81+
next(filter(file.match, config["file_checks"]), ""), {}
8282
),
8383
)
8484

0 commit comments

Comments
 (0)