Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pydocstyle plugin ignore "match" option in a config file #523

Open
vpunch opened this issue Jan 27, 2024 · 1 comment
Open

pydocstyle plugin ignore "match" option in a config file #523

vpunch opened this issue Jan 27, 2024 · 1 comment

Comments

@vpunch
Copy link

vpunch commented Jan 27, 2024

pydocstyle ignores files with the test_ prefix by default. For the file test_foo.py with this content:

def bar():
    pass

the $ pydocstyle test_foo.py command will not output anything. If I create the myproject.toml configuration file with this content :

[tool.pydocstyle]
match = '.*\.py'

then the output of the command will be as follows:

test_foo.py:1 at module level:
        D100: Missing docstring in public module
test_foo.py:1 in public function `bar`:
        D103: Missing docstring in public function

But when I open my editor with pylsp connected and the pydocstyle plugin enabled, I don't get any warnings.

@vpunch
Copy link
Author

vpunch commented Jan 27, 2024

Мay be related to #159

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant