pydoclint

How to configure pydoclint

This document shows you how to configure pydoclint.

1. All configuration options

For detailed explanations of all options, please read this page: Configuration options of pydoclint.

2. Specifying options inline

In either your terminal window or your CI/CD file (such as tox.ini):

(Note: the = sign is not necessary but it is encouraged, because it’s just a bit more “Pythonic” and easier to read.)

3. Specifying options in a configuration file

4. Specifying options in .pre-commit-config.yaml

This is a template for .pre-commit-config.yaml:

As a native toolAs a flake8 plugin
```yaml - repo: https://github.com/jsh9/pydoclint rev: hooks: - id: pydoclint args: - --style=google - --check-return-types=False ``` </td> ```yaml - repo: https://github.com/pycqa/flake8 rev: hooks: - id: flake8 additional_dependencies: - pydoclint== args: - --style=google - --check-return-types=False ``` </td></tr> </table> If you've already specified all the configuration options in a config file, here is how to cite them in `.pre-commit-config.yaml`:
As a native toolAs a flake8 plugin
```yaml - repo: https://github.com/jsh9/pydoclint rev: hooks: - id: pydoclint args: - --config=pyproject.toml ``` </td> ```yaml - repo: https://github.com/pycqa/flake8 rev: hooks: - id: flake8 additional_dependencies: - Flake8-pyproject>=1.2.0 - pydoclint== args: - --toml-config=pyproject.toml - --style=google - --check-return-types=False ``` </td></tr> </table> Here is an example accompanying `pyproject.toml` config file:
As a native toolAs a flake8 plugin
```toml [tool.pydoclint] check-return-types = false style = "google" ``` ```toml [tool.flake8] check-return-types = false style = "google" ```