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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylint_docstring_checker-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 2ee950df792f51d2a56749ec05f3aee78ea058eed997dfcdd30781acdd0f6c84
MD5 465ff80755846402effc3870ba9f2dd8
BLAKE2b-256 010bd2dcfdfa9f1216c2663fd53d171aa04d78f155bc32dbdf949f2652a40392

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylint_docstring_checker-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a476c92875b382bc64b015e2ec28371648bf952aa82908eaa1ee5afd1625b600
MD5 a6180fcf4b4c2d1a62f15e527c23600d
BLAKE2b-256 ea04dc6ba957f6b06e5c57e9cc6ab284c42066b80c09f6fb988492a3e88ecfa0

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