prospector
prospector copied to clipboard
[BUG] ignore-path is ignored when using explicit_file_mode
Describe the bug The ignore-path config is ignored when using explicit file node. This is annoying when prospector is started from a pre-commit hook.
To Reproduce Steps to reproduce the behavior:
- add "tests" to ignore-paths' in .prospector.yaml
- call prospector tests/XXX.py
Expected behavior Ignore tests/XXXX/py
Environment (please complete the following information):
- OS: Linux
- Prospector 1.7.7
- Python version [e.g. 3.7.12]
I could provide a fix if this behavior is unintentional.
Could you try with 1.8.0rc1 ? The 1.8 release contains a big rewrite of finding files and deciding which ones to check, it hopefully will have also fixed this (though not intentionally).
1.8.0rc1 seem to fix this issue.
Is 1.8.0rc1 available somewhere readily packaged or would one need to checkout the tag and install from source?
https://pypi.org/project/prospector/1.8.0rc1/ you can install rc version with the --pre option of pip