python-lsp / python-lsp-server

Fork of the python-language-server project, maintained by the Spyder IDE team and the community
MIT License
1.75k stars 187 forks source link

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

Open vpunch opened 5 months ago

vpunch commented 5 months ago

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 commented 5 months ago

Мay be related to #159