We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b468a8a commit a57ea5bCopy full SHA for a57ea5b
proselint/registry/__init__.py
@@ -53,7 +53,13 @@ def checks(self) -> list[Check]:
53
def get_all_enabled(
54
self, enabled: dict[str, bool] = DEFAULT["checks"]
55
) -> list[Check]:
56
- """Filter registered checks by config values based on their keys."""
+ """
57
+ Filter registered checks by config values based on their keys.
58
+
59
+ This assumes that keys are not nested, and sorted in descending order
60
+ of depth (specificity). For example, all keys should look like
61
+ `a.b.c`, and `a.b.c` should come before `a.b`.
62
63
self.enabled_checks = enabled
64
65
return [
0 commit comments