pyufunc.load_gitignore_patterns#
- pyufunc.load_gitignore_patterns(gitignore_path)#
Load a gitignore-style file into a pathspec matcher.
- Parameters:
gitignore_path – Path to a gitignore-style pattern file.
Note
Source package:
pathspec.Source repository: cpburnz/python-pathspec
Source document: https://python-path-specification.readthedocs.io/en/latest/index.html
Source license: Mozilla Public License 2.0.
Example
>>> spec = load_gitignore_patterns(".gitignore")
- Returns:
A
pathspec.PathSpecinstance.- Return type:
Any