chore(deps): update dependency pathspec to v1 #696
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.12.1→==1.0.0Release Notes
cpburnz/python-pathspec (pathspec)
v1.0.0Compare Source
Major changes:
Issue #​91_: Dropped support of EoL Python 3.8.backendargument toPathSpec(),PathSpec.from_lines(),GitIgnoreSpec(), andGitIgnoreSpec.from_lines().PathSpec(gitignore as documented) than withGitIgnoreSpec(replicates Git's edge cases).API changes:
pathspec.pathspec.PathSpec._match_file()(with a leading underscore) has been removed and replaced by backends. This does not affect normal usage ofPathSpecorGitIgnoreSpec. Only custom subclasses will be affected. If this breaks your usage, let me know byopening an issue <https://github.com/cpburnz/python-pathspec/issues>_.pathspec.patterns.GitWildMatchPatternis now an alias forpathspec.patterns.gitignore.spec.GitIgnoreSpecPattern.pathspec.patterns.gitwildmatchmodule has been replaced by thepathspec.patterns.gitignorepackage.pathspec.patterns.gitwildmatch.GitWildMatchPatternis now an alias forpathspec.patterns.gitignore.spec.GitIgnoreSpecPattern.pathspec.patterns.gitwildmatch.GitWildMatchPatternErroris now an alias forpathspec.patterns.gitignore.GitIgnorePatternError.pathspec.patterns.gitwildmatch.GitIgnorePatternhas been deprecated since v0.4 (2016-07-15).pathspec.pattern.RegexPattern.match_file()has been changed fromdef match_file(self, file: str) -> RegexMatchResult | Nonetodef match_file(self, file: AnyStr) -> RegexMatchResult | Noneto reflect usage.pathspec.pattern.RegexPattern.pattern_to_regex()has been changed fromdef pattern_to_regex(cls, pattern: str) -> tuple[str, bool]todef pattern_to_regex(cls, pattern: AnyStr) -> tuple[AnyStr | None, bool | None]to reflect usage and documentation.New features:
hyperscan_ library. It will automatically be used when installed. This dependency can be installed withpip install 'pathspec[hyperscan]'.google-re2_ library. It will automatically be used when installed. This dependency can be installed withpip install 'pathspec[re2]'.typing-extensions_ library to improve some type hints.Bug fixes:
Issue #​93_: Do not remove leading spaces.Issue #​95_: Matching for files inside folder does not seem to behave like .gitignore's.Issue #​98_: UnboundLocalError in RegexPattern when initialized withpattern=None.pathspec.pattern.RegexPattern.match_file()to match documentation.Improvements:
iter_tree_files()from v0.10... _
Issue #​38: #38.. _
Issue #​91: #91.. _
Issue #​93: #93.. _
Issue #​95: #95.. _
Issue #​98: #98.. _
google-re2: https://pypi.org/project/google-re2/.. _
hyperscan: https://pypi.org/project/hyperscan/.. _
typing-extensions: https://pypi.org/project/typing-extensions/Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.