--match_dir does not work properly #108

Closed
glennmatthews opened this Issue Feb 19, 2015 · 0 comments

Projects

None yet

1 participant

@glennmatthews
Contributor

The --match_dir is not respected properly when multiple directories exist:

> mkdir bar
> mkdir bat
> mkdir baz
> touch bar/bar.py
> touch bat/bat.py
> touch baz/baz.py
> pep257 --match-dir=bar
./bar/bar.py:1 at module level:
        D100: Docstring missing
./baz/baz.py:1 at module level:
        D100: Docstring missing

bar is correctly matched, and bat is correctly excluded, but baz is incorrectly included.

I have a candidate fix for this - will submit pull request.

@glennmatthews glennmatthews added a commit to glennmatthews/pep257 that referenced this issue Feb 19, 2015
@glennmatthews glennmatthews Fix PyCQA/pydocstyle#108 abb3d44
@glennmatthews glennmatthews changed the title from `--match_dir` does not work properly to --match_dir does not work properly Feb 19, 2015
@Nurdok Nurdok closed this in #109 Feb 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment