PyCQA / pydocstyle

docstring style checker
http://pydocstyle.org
MIT License
1.11k stars 188 forks source link

The match-dir parameter is not used. #637

Open EwertonDCSilv opened 1 year ago

EwertonDCSilv commented 1 year ago

I spent some time reading the documentation, looking for examples, anything that might help with building a regex to bypass certain directories with auto-generated code for migrations. Unfortunately I didn't find anything.

Decides to play around with the lib's code, and noticed that the filter done for match-dir wasn't applied anywhere.

Could you check this problem?

EwertonDCSilv commented 1 year ago

https://github.com/PyCQA/pydocstyle/blob/07f6707e2c5612960347f7c00125620457f490a7/src/pydocstyle/config.py#L287-L321

EwertonDCSilv commented 1 year ago

Focus on line 296 https://github.com/PyCQA/pydocstyle/blob/07f6707e2c5612960347f7c00125620457f490a7/src/pydocstyle/config.py#L290-L300

EwertonDCSilv commented 1 year ago

Could you use something like --ignore-glob in pytest?

https://docs.pytest.org/en/7.1.x/example/pythoncollection.html

EwertonDCSilv commented 1 year ago

Do you have any idea what it might be @Nurdok?