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.4.tar.gz (5.4 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.4-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylint_docstring_checker-1.0.4.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for pylint_docstring_checker-1.0.4.tar.gz
Algorithm Hash digest
SHA256 b56ecfded575448057e8505e047f3a21299f41d5a40724ed9886d1a4e1a28f1a
MD5 c2ed5b387622edd4ab657114e0e2bba5
BLAKE2b-256 9618da3593d655f1a86230c29e38b63007f6c3b990f0127b85685c64f7091abf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylint_docstring_checker-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ed33ef29934ae3f47c2d86199461f8b8b63aae0d70280b6999c1b392b9f3aefc
MD5 148a70af6128b9230010e1c84485522e
BLAKE2b-256 92a12173239aae691a9a9238d9502362e9971502c81e96828b08b59259fd0f76

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