git clone https://github.com/KRLabsOrg/rulechef.git
cd rulechef
pip install -e ".[dev,grex]"# All tests (excluding live API tests)
pytest --ignore=tests/test_incremental_live.py -q
# With coverage
pytest --ignore=tests/test_incremental_live.py --cov=rulechef
# Live API tests (requires OPENAI_API_KEY)
pytest tests/test_incremental_live.py -m integrationWe use ruff for linting and formatting, and mypy for type checking.
# Lint
ruff check .
# Auto-fix lint issues
ruff check . --fix
# Type check
mypy rulechef/ --ignore-missing-importsCI runs these checks on every pull request. Make sure they pass before submitting.
- Fork the repo and create a branch from
main - Make your changes
- Add or update tests as needed
- Ensure
ruff check .,mypy rulechef/, andpytestall pass - Open a pull request against
main