This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
--match should consider only basename when given a path argument #549
Comments
oczkoisse
changed the title
--match should consider only basename when given a path argument
Aug 13, 2021
--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.
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: