Fantasy Football Draft Optimizer - 2024
- Data Scraping
- Player metadata and weekly point projections from Sleeper
- Draft Recommendations
- Sync draft state from Sleeper leagues
- Use convex optimization to recommend an optimal roster
- Objective function: maximize the minimum points your team will score each week
- Install uv for your system.
- Install make for your system.
- Clone this repository and
cd into it.
- Run
uv venv --python 3.12 to initialize a virtual environment with Python 3.12.
- Run
make prd_install to install all requirements exactly as compiled in the requirements.txt file.
- If you want to update any dependencies, run
make install to install all requirements, or make dev_install to
install all requirements plus additional dependencies required for code formatting, tests, etc.
- Then run
make prd_compile to regenerate the universal requirements.txt file.
- Follow the
Installation section above, being sure to use make dev_install instead of make prd_install.
- Run
make format to lint and format all code using ruff, then check types using pyright.
- Run
make pytest to run tests and output a code coverage report. At this time, there is not full code coverage.
- Edit
__version__ in src/football/__init__.py