Skip to content

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

@vpunch

Description

@vpunch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions