ack3
ack3 copied to clipboard
Create --pytest filetype
Python test files are just standard Python files with .py extensions but with filenames beginning with test_ or ending with _test.
I've been using these for weeks in my personal ~/.ackrc.
--type-add=pytest:match:_test[.]py$
--type-add=pytest:match:^test_.*[.]py$