Skip to content

fix: use PathSpec gitignore parser to remove deprecation warnings#142

Closed
shuofengzhang wants to merge 1 commit into
jahwag:masterfrom
shuofengzhang:fix/pathspec-gitignore-parser
Closed

fix: use PathSpec gitignore parser to remove deprecation warnings#142
shuofengzhang wants to merge 1 commit into
jahwag:masterfrom
shuofengzhang:fix/pathspec-gitignore-parser

Conversation

@shuofengzhang

Copy link
Copy Markdown

What changed

  • Switched PathSpec parser mode from gitwildmatch to gitignore in three places in src/claudesync/utils.py:
    • .gitignore loading
    • category pattern matching in get_local_files
    • .claudeignore loading
  • Bumped version in pyproject.toml from 0.7.6 to 0.7.7 (per project contribution requirements).

Why

  • Recent PathSpec versions deprecate gitwildmatch and emit warnings recommending gitignore.
  • Using gitignore keeps matching behavior aligned with Git ignore semantics while removing avoidable deprecation noise during test runs.

Testing

  • scripts/clone_and_test.sh jahwag/ClaudeSync (pass)
  • source .venv/bin/activate && pytest -q (28 passed)

Signed-off-by: shuofengzhang <sofuncheung16@gmail.com>
@shuofengzhang shuofengzhang requested a review from jahwag as a code owner March 8, 2026 09:58
@github-actions

Copy link
Copy Markdown

This pull request has been marked as stale due to 7 days of inactivity. Please remove the stale label or comment to keep it open, otherwise, it will be closed in 3 days.

@github-actions github-actions Bot added the Stale label Mar 30, 2026
@jahwag

jahwag commented Apr 4, 2026

Copy link
Copy Markdown
Owner

@shuofengzhang would you kindly please commit using a verified signature

@jahwag jahwag removed the Stale label Apr 4, 2026
@github-actions

Copy link
Copy Markdown

This pull request has been marked as stale due to 7 days of inactivity. Please remove the stale label or comment to keep it open, otherwise, it will be closed in 3 days.

@github-actions github-actions Bot added the Stale label Apr 26, 2026

@jahwag jahwag left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified commits

@jahwag jahwag closed this Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants