T
Task9mo ago
trim21

how to apply `ignore` in source filter?

I have a python project using task, and I try to use --watch to restart my application. I'm using sources: ['**/*.py'] and this would include .venv dir, which is third part library lives. Is there a way to exclude this from source?
2 Replies
andreynering
andreynering9mo ago
Hi @trim21, In theory, that file should not be considered because it does not end with .py. Anyway, it's possible to exclude files with exclude:. See: https://taskfile.dev/usage/#by-fingerprinting-locally-generated-files-and-their-sources
trim21
trim21OP9mo ago
.venv directory holds package files, it's a very deep file tree may contains .py file... thands
Want results from more Discord servers?
Add your server