-
Notifications
You must be signed in to change notification settings - Fork 188
Exclusion regex passed to match-dir does not exclude #175
Comments
Having an exclude option via cli and config (like pep8, flake8 and a lot of other tools) would make this easier |
An alternative solution to ignore the migrations themselves (files starting with 4 digits). This isn't ideal, but it helps:
|
+1 to add something simple like |
I agree this is a very confusing method to include/exclude directories and a clearer method, such as that in
does work in version 2.3.1, not sure at which point this was fixed. The first two regexes are not valid for the OP's purpose. The first will skip any directories beginning with '.', 'm', 'i', 'g', 'r', 'a', 't', 'i', 'o'. 'n', or 's' while the second only matches the empty string. Therefore, this issue should probably be closed. |
Still appears to be an issue in 2.1.1. |
Is this even a version? Not according to https://github.com/PyCQA/pydocstyle/tags |
Does not exclude all migrations folders given a bug in pydocstyle: PyCQA/pydocstyle#175
|
Docs are lying: this option works without quotes, like: |
@tomarak and @craiga - your issue is that your closing double-quote isn't ASCII, it's some Unicode character, probably copied from somewhere: Other than that, there is a difference between how different shells parse singe and double quotes, so "which quotes should I use" is completely a user decision based on his/hers setup. Take a look at this SOVF question for more info. Bottom line: there is no issue with how Cheers, |
Well, that's a little embarrassing. Thanks for your patience. |
Finally found solution - at least for VS Code (but don't ask me why it works though :) "python.linting.pydocstyleArgs": ["--match=^((?!test).)*$"], |
When I supply a regex to the
match-dir
option to ignore my migrations folders, the migrations folders still get included in the directories checked. I've tried:And none work as expected.
The file structure of my project looks like this:
The text was updated successfully, but these errors were encountered: