mirror of
https://github.com/ivuorinen/ghaw-auditor.git
synced 2026-01-26 03:14:09 +00:00
968 B
968 B
Contributing
Setup
uv sync
uv pip install -e .
Development
# Run locally
uv run ghaw-auditor scan --repo .
# Tests
uv run -m pytest
uv run -m pytest -k test_name
# Coverage
uv run -m pytest --cov --cov-report=html
# Lint & format
uvx ruff check .
uvx ruff format .
# Type check
uvx mypy .
Code Style
- Python 3.11+ with type hints
- Max line length: 120 characters
- Follow PEP 8
- Use Pydantic for models
- Add docstrings to public functions
Testing
- Write tests for new features
- Maintain coverage ≥ 85%
- Use pytest fixtures
- Mock external API calls
Pull Requests
- Fork and create a feature branch
- Add tests
- Ensure all checks pass
- Update CHANGELOG.md
- Submit PR with clear description
Commit Messages
Follow conventional commits:
feat:new featurefix:bug fixdocs:documentationtest:testsrefactor:code refactoring
Questions?
Open an issue for discussion.