T
Task6mo 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
andreynering6mo 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
trim216mo 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