-
Notifications
You must be signed in to change notification settings - Fork 187
Files passed as arguments ignored by --match #111
Comments
PR in #112 |
Close? |
Is this seen as a non-standard use case, or that it breaks expected behavior? |
I'm not sure how I feel about this. On the one hand, I get your point, but I also feel that passing an explicit file name should take precedence over the matching regex. Anyone else cares to pitch in? |
Was this reverted? The behavior I am seeing shows that an explicitly passed in file will override |
AFAIK if it overrides |
In this PR: - Fixed omniscidb docstrings - Fixed some docstrings - Added pydocstyle check for ./ibis/.py and ./ibis/omniscidb/*.py Current issues with pydocstyle: - PyCQA/pydocstyle#111 - PyCQA/pydocstyle#363 Author: Ivan Ogasawara <[email protected]> Closes #1996 from xmnlab/add-docstring-check and squashes the following commits: bcda303 [Ivan Ogasawara] Fixed pydocstyle command. 55ff381 [Ivan Ogasawara] Add pydocstyle match-dir parameter into CI recipe. 5b270e8 [Ivan Ogasawara] Add docstring check to CI and git pre-commit hook
I'm noticing it indeed overrides A workaround is to use a
|
Currently the only way to exclude certain files is using negative lookahead patterns like If you're using pydocstyles pre-commit support, you'll be passing in the list of changed files every time you do a git commit, but you will still want to exclude certain files, which this issue prevents. The only thing pre-commit users can do is use IMHO, for the pre-commit support to be useful, there needs to be a way to exclude certain file patterns, even if they are passed in explicitly on the CLI. What if we introduced a switch that prevents |
Has this behavior changed again? I'm trying to reproduce a configuration problem, and I am finding that pydocstyle honors the With this config:
pydocstyle does check my tests:
but with the default config, pydocstyle 6.2.3 is ignoring unmatched files even when I list them explicitly on the command line:
|
After a bit of digging, I believe that this issue was resolved by #550 (released in version 6.2.0). If I revert to pydocstyle 6.1.1, I see inconsistent behavior depending on whether the command-line argument is a filename or a path:
After #550, those two cases behave the same:
Therefore, I think this issue can be closed. This also means that the reverted change in #610 wasn't actually necessary (which is good, because of the performance concerns mentioned by @danmoz). |
Thanks for digging @bszonye Perhaps out of scope but a similar issue with
I would not expect |
It looks like when you pass specific filenames to pep257, it ignores if you have set the
--match
option.For example:
Will still check foo.py and bar.py. While I understand why this makes sense, since there is a default match pattern that ignores 'test_.', and you want to be able to easily use pep257 on a file prefixed with 'test._' if desired, iit means that pep257 doesn't perform as one might expect when using something like xargs to pass a bunch of files into it.
The text was updated successfully, but these errors were encountered: