ansible / molecule

Molecule aids in the development and testing of Ansible content: collections, playbooks and roles
https://ansible.readthedocs.io/projects/molecule/
MIT License
3.89k stars 664 forks source link

Add VsCode support for pydoclint #4241

Closed cidrblock closed 5 months ago

cidrblock commented 5 months ago

Since flake8 has been removed, VsCode no longer provided feedback during development about new docstring errors.

This PR add a new task called pydoclint that runs pydoclint in the background. Message from pydoclint are parsed with a regex and presented in the problems tab of VsCode by the task.

VsCode does not have native support for running a task on save, so a new extension is added to support that.

The flake8 extension is removed which was an oversight in #4235

Related #4236

cidrblock commented 5 months ago

Gonna merge this one so it can be carried over to other projects