A pre-commit hook to check Python documentation using GitHub Copilot
Project description
Python Copilot Documentation Hook
A pre-commit hook that checks Python files for missing documentation and suggests using GitHub Copilot for documentation generation.
Installation
pip install python_copilot_docs_hook
Usage
Add to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/yourusername/python_copilot_docs_hook
rev: v0.1.0
hooks:
- id: python-copilot-docs
Requirements
- Python 3.6+
- GitHub Copilot subscription
- VS Code with Copilot extension
How it Works
- Hook checks Python files for missing documentation
- If missing docs are found:
- Shows line numbers where docs are needed
- Suggests using Alt+\ to trigger Copilot suggestions
- Commit fails if any files are missing documentation
Development
# Clone repository
git clone https://github.com/yourusername/python_copilot_docs_hook.git
cd python_copilot_docs_hook
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Install development dependencies
pip install -e .
Project details
Release history Release notifications | RSS feed
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 python_copilot_docs_hook-0.1.7.tar.gz.
File metadata
- Download URL: python_copilot_docs_hook-0.1.7.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1397f7359189261879e45708712e8c546e38fc9f29c44c4b77d2d6c8b9850e5f
|
|
| MD5 |
e141dd484379c396c09fe7c1f82d0357
|
|
| BLAKE2b-256 |
1d350863a8551627b5916b93ac3e228a20949546ecdab8adc1b4921932e87db9
|
File details
Details for the file python_copilot_docs_hook-0.1.7-py3-none-any.whl.
File metadata
- Download URL: python_copilot_docs_hook-0.1.7-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c168d35999915af13ee913483b4a70370e5d8cabba106cc15702a5ab95be7dbc
|
|
| MD5 |
f8eea2ce670a531ae7a30ab30126aa56
|
|
| BLAKE2b-256 |
12760af1181df18023db7a5265bbe28fee8877b4e667f64b98613f1eedc80138
|