Is there any way to create custom scope which full file path with directories from project root contains 'test' word?
For example:
$PROJECT_ROOT/first/second/sample_test/my_file.py
should be included because directory sample_test contains 'test' word.
$PROJECT_ROOT/first/second/my_test.py
also should be included because file contains 'test' word.
I used file:*test*.py and it covers files and folder as listed in your requirements

Edit-1: 23rd Feb
For not matching the folders with name test, you can use file:*test*.py&&!file:*test*/*.py. See the below results using same

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With