forked from tomv564/pyls-mypy
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
exclude
option to pylsp-mypy configuration (#71)
* add regex pattern matching to exclude documents from type checking * Move exclude code to pylsp_lint so mypy is not invoked unnecessarily * Use re.search so pattern is matched across the whole path * Improve test so we are sure the exclude section has this side-effect * Document the exclude config option * Make the match_exclude_patterns logic os independent Just convert windows paths to unix (a ilke) paths, so d:\My Documents\my_file.py becomes d:/My Documents/my_file.py Then you can reuse the configured exclude patterns for both windows and unix (a like) platforms. * Update the TYPE_ERR_MSG to be compatible with mypy 1.7 --------- Co-authored-by: Jonas Bulik <[email protected]> Co-authored-by: Richard Kellnberger <[email protected]>
- Loading branch information
1 parent
d72a3c6
commit 2f569f6
Showing
3 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters