Thank you for your interest in contributing! This document explains how to get started.
git clone https://github.com/shifulegend/autodocgen
cd autodocgen
pip install -e .[dev]Run the full test suite:
pytestRun with coverage:
pytest --cov=autodocgen --cov-report=term-missing- Fork the repository and create a branch from
main. - Write your changes with clear commit messages.
- Ensure all existing tests pass and add new tests for your changes.
- Open a pull request targeting the
mainbranch. - Fill in the PR template with a clear description of what changed and why.
AutoDocGen uses OIDC Trusted Publisher authentication — no API tokens are stored as GitHub secrets. This is the safest way to publish to PyPI.
For TestPyPI:
- Go to test.pypi.org/manage/account/publishing
- Click "Add a new pending publisher"
- Fill in:
- PyPI project name:
pypiautodocgen - GitHub owner:
shifulegend - Repository:
autodocgen - Workflow filename:
release.yml - Environment name:
testpypi
- PyPI project name:
- Save.
For real PyPI:
- Create an account at pypi.org
- Go to pypi.org/manage/account/publishing
- Fill in the same fields as above, but use environment name
pypi. - Save.
In GitHub:
- Go to the repository → Settings → Environments.
- Create two environments named exactly
testpypiandpypi. - No secrets needed — OIDC handles authentication automatically.
# Update the version in pyproject.toml, then:
git tag v0.1.1
git push origin v0.1.1The release.yml workflow will automatically run tests, build the package, and publish to both TestPyPI and PyPI.
- Python 3.10+ syntax throughout.
- No unused imports.
- All public functions should have docstrings.
- Prefer explicit error propagation over swallowing exceptions.
Please use the bug report template when opening an issue.