-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed slash removal from resolved patterns Added CWD to platform debug file Added excluded paths to platform debug file Added venv exclusion based on file Changed regex match function to search to support subprojects Set explicit dotfile name patterns Reverted build assets gathering dc808ca Reverted info.gitignore file 79129d5
- Loading branch information
1 parent
fdeafbb
commit d28901e
Showing
7 changed files
with
209 additions
and
141 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
def get_exclusion_patterns(): | ||
""" | ||
Regex patterns, which will be compared against directory and file names | ||
case-sensitively. https://docs.python.org/3/library/re.html#re.search is the | ||
matching function and scans the whole string to find any pattern match. Used | ||
with the https://pypi.org/project/regex/ module. | ||
Additional remarks for pattern creation: | ||
- The compared paths will be always in POSIX format. | ||
- Each directory path will have a / at the end to allow to distinguish them | ||
from files. | ||
- Patterns for dynamic or custom paths like Virtual Environments (venv) or | ||
build site directories are created during plugin runtime. | ||
""" | ||
return [ | ||
# Python cache directory | ||
r"/__pycache__/", | ||
|
||
# NodeJS modules | ||
r"/node_modules/", | ||
|
||
# macOS | ||
r"/\.DS_Store$", | ||
|
||
# Common IDE directories | ||
r"/\.vscode/", | ||
r"/\.vs/", | ||
r"/\.idea/", | ||
|
||
# Git repository | ||
r"/\.git/", | ||
|
||
# Generated files and folders | ||
r"/[^/]+\.zip$", | ||
|
||
# .cache files and folders | ||
r"/[^/]*\.cache($|/)", | ||
|
||
# Common developer .dotfiles | ||
r"/\.gitignore$", | ||
r"/\.gitattributes$", | ||
r"/\.gitmodules$", | ||
r"/\.editorconfig$", | ||
r"/\.dockerignore$", | ||
r"/\.eslintignore$", | ||
r"/\.eslintrc$", | ||
r"/\.stylelintignore$", | ||
r"/\.stylelintrc$", | ||
r"/\.browserslistrc$", | ||
r"/\.babelrc$", | ||
r"/\.codecov\.yml$", | ||
r"/\.coveragerc$", | ||
r"/\.pre-commit-config\.yaml$", | ||
r"/\.pyspelling\.yml$", | ||
r"/\.flake8$", | ||
] |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
def get_exclusion_patterns(): | ||
""" | ||
Regex patterns, which will be compared against directory and file names | ||
case-sensitively. https://docs.python.org/3/library/re.html#re.search is the | ||
matching function and scans the whole string to find any pattern match. Used | ||
with the https://pypi.org/project/regex/ module. | ||
Additional remarks for pattern creation: | ||
- The compared paths will be always in POSIX format. | ||
- Each directory path will have a / at the end to allow to distinguish them | ||
from files. | ||
- Patterns for dynamic or custom paths like Virtual Environments (venv) or | ||
build site directories are created during plugin runtime. | ||
""" | ||
return [ | ||
# Python cache directory | ||
r"/__pycache__/", | ||
|
||
# NodeJS modules | ||
r"/node_modules/", | ||
|
||
# macOS | ||
r"/\.DS_Store$", | ||
|
||
# Common IDE directories | ||
r"/\.vscode/", | ||
r"/\.vs/", | ||
r"/\.idea/", | ||
|
||
# Git repository | ||
r"/\.git/", | ||
|
||
# Generated files and folders | ||
r"/[^/]+\.zip$", | ||
|
||
# .cache files and folders | ||
r"/[^/]*\.cache($|/)", | ||
|
||
# Common developer .dotfiles | ||
r"/\.gitignore$", | ||
r"/\.gitattributes$", | ||
r"/\.gitmodules$", | ||
r"/\.editorconfig$", | ||
r"/\.dockerignore$", | ||
r"/\.eslintignore$", | ||
r"/\.eslintrc$", | ||
r"/\.stylelintignore$", | ||
r"/\.stylelintrc$", | ||
r"/\.browserslistrc$", | ||
r"/\.babelrc$", | ||
r"/\.codecov\.yml$", | ||
r"/\.coveragerc$", | ||
r"/\.pre-commit-config\.yaml$", | ||
r"/\.pyspelling\.yml$", | ||
r"/\.flake8$", | ||
] |
Oops, something went wrong.