We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bfb8f1 commit 25034b2Copy full SHA for 25034b2
proselint/registry/checks/__init__.py
@@ -145,6 +145,9 @@ def path_segments(self) -> list[str]:
145
146
def matches_partial(self, partial: str) -> bool:
147
"""Check if `partial` is a subset key of the full check path."""
148
+ if self.path == partial:
149
+ return True
150
+
151
partial_segments = partial.split(".")
152
153
return self.path_segments[: len(partial_segments)] == partial_segments
0 commit comments