Skip to main content

A Pylint plugin to check Google-style docstrings and language detection.

Project description

🧩 pylint-docstring-checker

A Pylint plugin that checks Python docstrings for Google Python Style Guide compliance
and detects non-English (Vietnamese) docstrings.

This plugin helps teams enforce consistent documentation and quality across Python projects.


✨ Features

Google Python Style Guide validation:

  • Checks for correct Args:, Returns:, and Raises: sections.
  • Ensures the summary line exists, starts with a capital letter, and ends with a period.
  • Requires a blank line between summary and detail sections (PEP-257 friendly).

🈲 Language detection:

  • Warns if a docstring contains Vietnamese characters.

📊 Summary report at the end of each Pylint run:

📊 Docstring Summary Report:
- Total functions:                 10
- With docstring:                  8
- Without docstring:               2
- Vietnamese docstrings:           1
- English/Japanese docstrings:     7
- Google-style compliant:          4
- Google Style Coverage:           50.00%
- Coverage:                        80.00%

🛠️ Installation

From PyPI

pip install pylint-docstring-checker

🚀 Usage

Run directly

pylint --load-plugins=pylint_docstring_checker your_module.py

Or enable in .pylintrc

[MASTER]
load-plugins=pylint_docstring_checker

Then simply run:

pylint your_project/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylint_docstring_checker-1.0.6.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylint_docstring_checker-1.0.6-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file pylint_docstring_checker-1.0.6.tar.gz.

File metadata

File hashes

Hashes for pylint_docstring_checker-1.0.6.tar.gz
Algorithm Hash digest
SHA256 f3eadeab5bc0dd8035fab8cad213a8e9fea344056e7b474e764262abd1261abf
MD5 f57d081391aa83ba386e4c2197dbbdc1
BLAKE2b-256 ec51731ccb0c3145f8ddae7d1fda1b4d448881ca6cd9f9f00abfc643c77fa44d

See more details on using hashes here.

File details

Details for the file pylint_docstring_checker-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for pylint_docstring_checker-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 85b052bd22b7e86b08b22f7d85e9c6837d772d5f36cfe5bcc231cd4a0579f24d
MD5 843dba3f3c5de8a110e16adfb38985c9
BLAKE2b-256 6ae72c23f53ad7a78b936fe78bed6bf6845b2d5adac4fc9ffe2df861fb86e2ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page