We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5888f74 commit 1b2194aCopy full SHA for 1b2194a
pylsp_mypy/plugin.py
@@ -187,6 +187,10 @@ def pylsp_lint(
187
# exclude = ["tests/*"]
188
exclude = settings.get("exclude", [])
189
for pattern in exclude:
190
+ # Make sure that \\ characters are encoded correctly so for examples
191
+ # windows paths are matched without any bad escape errors
192
+ pattern = pattern.encode("unicode-escape").decode()
193
+
194
if re.search(pattern, document.path):
195
log.debug(
196
f"Not running because {document.path} matches " f"exclude pattern '{pattern}'"
0 commit comments