Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
cpburnz committed Feb 11, 2025
1 parent 8634368 commit 2eddc56
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 5 additions & 1 deletion DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ These are notes to myself for things to review before decommissioning EoL versio

**Python 3.8:**

- Becomes EoL in 2024-10.
- EoL as of 2024-10-07.

**Python 3.9:**

- Becomes EoL in 2025-10.

References:

Expand Down
5 changes: 4 additions & 1 deletion pathspec/patterns/gitwildmatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def pattern_to_regex(
else:
pattern = pattern.strip()

regex: Optional[str]
include: Optional[bool]

if pattern.startswith('#'):
# A pattern starting with a hash ('#') serves as a comment (neither
# includes nor excludes files). Escape the hash with a back-slash to match
Expand All @@ -100,7 +103,7 @@ def pattern_to_regex(

# Allow a regex override for edge cases that cannot be handled through
# normalization.
override_regex = None
override_regex: Optional[str] = None

# Split pattern into segments.
pattern_segs = pattern.split('/')
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand All @@ -35,7 +36,6 @@ requires-python = ">=3.8"
"Documentation" = "https://python-path-specification.readthedocs.io/en/latest/index.html"
"Issue Tracker" = "https://github.com/cpburnz/python-pathspec/issues"


[tool.flit.sdist]
include = [
"*.cfg",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{38, 39, 310, 311, 312}
py{38, 39, 310, 311, 312, 313}
pypy3
docs
isolated_build = True
Expand Down

0 comments on commit 2eddc56

Please sign in to comment.