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:, andRaises: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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylint_docstring_checker-1.0.3.tar.gz.
File metadata
- Download URL: pylint_docstring_checker-1.0.3.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d39050337870ee9c5db8254f04fa30b4910be2aaec5cf055da3a9b32c750bd70
|
|
| MD5 |
60eb5978734a3481f5e28cec3b870f41
|
|
| BLAKE2b-256 |
fb3ef2285cdf9514d3ac5a4f2d21ae2f3c9be84bb47a614c15a05d7eba5d0a24
|
File details
Details for the file pylint_docstring_checker-1.0.3-py3-none-any.whl.
File metadata
- Download URL: pylint_docstring_checker-1.0.3-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0da585585be55dfc00822c9dcdba914920bebdd82229a648c0a979b730782cd0
|
|
| MD5 |
cb4a9a56fccbe4416b27835f7123aac2
|
|
| BLAKE2b-256 |
222236a84566be2b53879c2127926fbba44bc2a9f3b235a7a90420909c6d71f0
|