Python package implementing sampling policies for contextual bandits and statistical inference methods.
- Python 3.13+
- uv package manager
- Make
# Clone the repository
git clone https://github.com/ramonvdakker/research-bandits-methods.git
cd research-bandits-methods
# Install dependencies
uv sync
# Install with development dependencies
uv sync --group devTODO
TODO
# Run all tests with coverage
make test
# Run specific test
uv run --group dev pytest tests/test_main.py::test_main
# View coverage report
open htmlcov/index.html# Run all pre-commit hooks
make lint
# Install pre-commit hooks (runs automatically on commit)
uv run --with pre-commit pre-commit installThe project enforces code quality through pre-commit hooks:
- ruff: Linting and formatting
- isort: Import sorting
- mypy: Type checking
- pydocstyle: Docstring conventions
- interrogate: Docstring coverage
- bandit: Security checks
- detect-secrets: Secret detection
See LICENSE file for details.