-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: handle verbose include/exclude patterns in pyproject.toml
If a verbose pattern was being used in pyproject.toml, the patterns did not function correctly. For instance, the pattern exclude = ''' ( /( folder1 | folder2 )/ ) ''' does not function properly. This pattern is inspired by the pattern that black themselves use: https://github.com/python/black/blob/master/pyproject.toml Solve this issue by removing newlines, and formatting the pattern before using it. This is done the same way as black themselves are doing it.
- Loading branch information
1 parent
70b8749
commit d79e688
Showing
2 changed files
with
48 additions
and
1 deletion.
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