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

9 statements  

1""" 

2The *pathspec* package provides pattern matching for file paths. So far this 

3only includes Git's *gitignore* patterns. 

4 

5The following classes are imported and made available from the root of the 

6`pathspec` package: 

7 

8- :class:`pathspec.gitignore.GitIgnoreSpec` 

9 

10- :class:`pathspec.pathspec.PathSpec` 

11 

12- :class:`pathspec.pattern.Pattern` 

13 

14- :class:`pathspec.pattern.RegexPattern` 

15 

16- :class:`pathspec.util.RecursionError` 

17 

18The following functions are also imported: 

19 

20- :func:`pathspec.util.lookup_pattern` 

21 

22The following deprecated functions are also imported to maintain backward 

23compatibility: 

24 

25- :func:`pathspec.util.iter_tree` 

26 

27- :func:`pathspec.util.match_files` 

28""" 

29 

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. 

42 

43from ._meta import ( 

44 __author__, 

45 __copyright__, 

46 __credits__, 

47 __license__) 

48from ._version import ( 

49 __version__) 

50 

51# Load pattern implementations. 

52from . import patterns 

53 

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]