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.1.tar.gz (4.2 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.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylint_docstring_checker-1.0.1.tar.gz
  • Upload date:
  • Size: 4.2 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.1.tar.gz
Algorithm Hash digest
SHA256 a51f310c11898371b4075a6c443d03e76a9563ec3d6b6d0e5635b9c6cc3f1506
MD5 f169971367b0030ff81d29c4229f7d81
BLAKE2b-256 0b08892e8ee15a7d8d0816db6b2e072d80120bee0c442f01f3bb3ab8c3434642

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylint_docstring_checker-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c86430ad3be4f61b30f09e5d1305267a190a3beb4ff190bfbc29ab46cb4e0f4a
MD5 a92d926b5dae110175ac430af4eb08bf
BLAKE2b-256 64ba401749c6d72fbc9b537a1cbdc7f13f8c545045b899a1f00a38137952271a

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