mirror of
https://github.com/Significant-Gravitas/gravitas-md2gdocs.git
synced 2026-11-07 11:25:58 -10:00
Renamed all source files, documentation, and configuration from md2gdocs to gravitas-md2gdocs for improved clarity and consistency. Updated import paths, package name, URLs, and test references throughout the project.
1.5 KiB
1.5 KiB
Contributing to gravitas-md2gdocs
We welcome contributions! Here's how to get started.
Development Setup
-
Clone the repository:
git clone https://github.com/significant-gravitas/gravitas-md2gdocs.git cd gravitas-md2gdocs -
Install dev dependencies with uv:
uv sync --extra devOr with Google API support:
uv sync --extra dev --extra google
Running Tests
uv run pytest tests/ -v
With coverage:
uv run pytest tests/ -v --cov=src/gravitas_md2gdocs
Linting and Formatting
We use ruff for linting and formatting:
# Check for issues
uv run ruff check .
# Auto-fix issues
uv run ruff check --fix .
# Format code
uv run ruff format .
# Check formatting only
uv run ruff format --check .
Pull Request Process
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Make your changes
- Run tests and linting
- Commit your changes (
git commit -am 'Add my feature') - Push to your fork (
git push origin feature/my-feature) - Open a Pull Request
CI/CD
All PRs must pass:
- Linting (ruff)
- Tests on Python 3.10, 3.11, 3.12
- Build verification
Releasing
Releases are automated via GitHub Actions. To create a release:
- Update CHANGELOG.md with the new version
- Create a git tag (e.g.,
git tag v0.1.0) - Push the tag (
git push origin v0.1.0) - GitHub Actions will automatically build and publish to PyPI