This repository was archived by the owner on Nov 3, 2023. It is now read-only.
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
--match should consider only basename when given a path argument #549
Closed
Description
As an example,
pydocstyle --match '(?!setup).*\.py' setup.py
correctly ignores setup.py
. However, both
pydocstyle --match '(?!setup).*\.py' .\setup.py
and
pydocstyle --match '(?!setup).*\.py' ./setup.py
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 a match
pattern in my configuration, it doesn't work because full paths are passed to pydocstyle
. I wasted some time trying to figure out if I had configured pydocstyle
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.
Metadata
Metadata
Assignees
Labels
No labels