Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm - custom scope for full path

Tags:

pycharm

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.

like image 718
domandinho Avatar asked Dec 18 '25 13:12

domandinho


1 Answers

I used file:*test*.py and it covers files and folder as listed in your requirements

listed files

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

Scope 2

like image 141
Tarun Lalwani Avatar answered Dec 20 '25 20:12

Tarun Lalwani



Donate For Us

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