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.2.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.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylint_docstring_checker-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a50c34c3c81cb31724d262566f3ca0a0dbffa7feb6bf5244f3b3b54f6a807478
MD5 acd408cb66b44333d08a2ca6094493b7
BLAKE2b-256 3a5967e84af30218e16f1f8cb63c4b5ff75224bb73c261ef41fc8b2aa7d0d648

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylint_docstring_checker-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 37a1a35012796de8a1f215107aa29a4c52f5c844272e65189f1d3d76375ecfad
MD5 51f69dda7eeaa4a0155d50047a006f1d
BLAKE2b-256 7dcde63208c0ddff1cc4ad33cbc51153b4698a4457d8d5fd1eabe6f9747a60a2

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