This repository was archived by the owner on Nov 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 188
--match should consider only basename when given a path argument #549
Comments
--match
should consider only basename when given a path argument
pydocstyle/src/pydocstyle/config.py Lines 243 to 292 in 5a1c4d3
I think the solution can be handled in a couple ways:
|
2 tasks
@sigmavirus24 Thanks for replying. About the suggested approaches:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Uh oh!
There was an error while loading. Please reload this page.
As an example,
correctly ignores
setup.py
. However, bothand
don't. This behavior is confusing for a user. Even worse, IDEs like VSCode automatially invoke
pydocstyle
with full path of opened Python file. Even if I include amatch
pattern in my configuration, it doesn't work because full paths are passed topydocstyle
. I wasted some time trying to figure out if I had configuredpydocstyle
correctly because VSCode was still flagging problems in ignored files.I think the issue can be resolved by only considering basename of file arguments to match against
--match
pattern.The text was updated successfully, but these errors were encountered: