Contributing Guide
We welcome contributions to DocFirewall!
Development Environment
Prerequisites
- Python 3.10+
- Poetry (optional, but recommended)
- Docker (for AV integration tests)
Setup
git clone https://github.com/doc-firewall/doc-firewall.git
cd doc-firewall
pip install -e ".[dev]"
pre-commit install
Testing
We use pytest for unit and integration tests.
# Run all tests
pytest
# Run fast tests only
pytest -m "not slow"
# Run with coverage
pytest --cov=doc_firewall
Code Style
We follow PEP 8 and use black for formatting.
Pull Request Process
- Create a feature branch.
- Add tests for new features.
- Ensure all tests pass locally.
- Submit a PR with a description of changes.