Remove Prospector --zero-exit argument#754
Conversation
There was a problem hiding this comment.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
.pre-commit-config.yaml:70
- The new exclusion pattern 'tests/.*' is very broad and may inadvertently exclude files that should be checked. Consider refining the regex to only target the specific test files or directories that need to be excluded.
+ tests/.*
There was a problem hiding this comment.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
.pre-commit-config.yaml:69
- The updated exclude pattern 'tests/.*' may be too broad and could inadvertently exclude files beyond the intended targets. Consider narrowing the regex to only the specific directories or file patterns you wish to exclude.
tests/.*
| exclude: |- | ||
| (?x)^( | ||
| tests/suppression/testdata/.* | ||
| |tests/tools/vulture/testpath/testfile\.py |
There was a problem hiding this comment.
Linting test files would bring value, how many should be fixed before this work at the moment ?
|
@Pierre-Sassoulas I just added the test files in Prospector check :-) |
|
It's worth pointing out that the However if you add The logic of this originally was: if you lint everything it might overwhelm people and discourage them, so make it so only "medium or worse" things were highlighted and tests were not as important as the main code. The idea being it'd encourage fixing those, then turning on more linting later. I think that's still valid, since prospector was meant to be the 'gateway' tool before really starting to configure pylint and flake8 and so on though the landscape has changed a lot since I made that design choice! |
|
Then we should (one of them):
What do you think? |
|
Why not simple update the prospector profile to have |
|
For is it's working effectively, but for the other I think that set pass_filenames to |
Description
Remove the
--zero-exitProspector argument.Complete the “exclude” to make the check pass.