Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/pathspec/__init__.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2The *pathspec* package provides pattern matching for file paths. So far this
3only includes Git's *gitignore* patterns.
5The following classes are imported and made available from the root of the
6`pathspec` package:
8- :class:`pathspec.gitignore.GitIgnoreSpec`
10- :class:`pathspec.pathspec.PathSpec`
12- :class:`pathspec.pattern.Pattern`
14- :class:`pathspec.pattern.RegexPattern`
16- :class:`pathspec.util.RecursionError`
18The following functions are also imported:
20- :func:`pathspec.util.lookup_pattern`
22The following deprecated functions are also imported to maintain backward
23compatibility:
25- :func:`pathspec.util.iter_tree`
27- :func:`pathspec.util.match_files`
28"""
30from .gitignore import (
31 GitIgnoreSpec)
32from .pathspec import (
33 PathSpec)
34from .pattern import (
35 Pattern,
36 RegexPattern)
37from .util import (
38 RecursionError,
39 iter_tree, # Deprecated since 0.10.0.
40 lookup_pattern,
41 match_files) # Deprecated since 0.10.0.
43from ._meta import (
44 __author__,
45 __copyright__,
46 __credits__,
47 __license__)
48from ._version import (
49 __version__)
51# Load pattern implementations.
52from . import patterns
54# Declare private imports as part of the public interface. Deprecated imports
55# are deliberately excluded.
56__all__ = [
57 'GitIgnoreSpec',
58 'PathSpec',
59 'Pattern',
60 'RecursionError',
61 'RegexPattern',
62 '__author__',
63 '__copyright__',
64 '__credits__',
65 '__license__',
66 '__version__',
67 'lookup_pattern',
68]