Skip to content

Fix .gitignore search in FileWatcher#598

Merged
s3rius merged 2 commits intotaskiq-python:masterfrom
LaryStef:fix-filewatcher-gitignore
Mar 31, 2026
Merged

Fix .gitignore search in FileWatcher#598
s3rius merged 2 commits intotaskiq-python:masterfrom
LaryStef:fix-filewatcher-gitignore

Conversation

@LaryStef
Copy link
Copy Markdown
Contributor

@LaryStef LaryStef commented Feb 28, 2026

Summary

When using --reload-dir, the FileWatcher can't find .gitignore file since it only looks in the watched directory, not in the project root.

Changes

  • FileWatcher now start searching for .gitignore in --reload-dir directory and goes upper until it reaches project root.

Fixes #591 issue.
I suppose it was broken first time here.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.45%. Comparing base (f6c96b2) to head (13dc1af).
⚠️ Report is 80 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #598      +/-   ##
==========================================
+ Coverage   77.70%   78.45%   +0.74%     
==========================================
  Files          62       68       +6     
  Lines        1933     2413     +480     
==========================================
+ Hits         1502     1893     +391     
- Misses        431      520      +89     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@s3rius s3rius merged commit dade604 into taskiq-python:master Mar 31, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FileWatcher only looks for .gitignore in watched directory, not project root

2 participants