We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer
We use github to host code, to track issues and feature requests, as well as accept pull requests.
Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests:
- Fork the repo and create your branch from
development. - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Issue that pull request!
Install dependencies:
poetry install -E asyncOffline tests are deterministic and should run before every pull request:
poetry run pytest \
tests/ \
--ignore=tests/external_testsExternal tests contact the live MLB API. They require internet access and are separate from normal offline CI:
poetry run pytest \
tests/external_tests/These live tests may fail because the MLB service is unavailable or because MLB changes undocumented payloads.
Full local validation:
poetry run pytest tests/
rm -rf dist
poetry build
python3 scripts/validate_release.py
poetry run twine check dist/*scripts/validate_release.py is the same release check offline CI runs. It inspects the built wheel and source distribution, clean-installs each artifact into its own temporary virtual environment, and runs the same public-API smoke test against both installed artifacts. Every response it observes comes from injected fake HTTP clients, so it never contacts the MLB API.
Offline CI is the normal pull-request gate. External tests are available manually, on a weekly schedule, and before releases.
- Run offline tests before submitting a PR
- Use the PR template when creating your pull request
- Follow the branch naming convention:
feat/- New featuresfix/- Bug fixesdocs/- Documentation updatesrefactor/- Code improvements
In short, when you submit code changes, your submissions are understood to be under the same MIT License that covers the project. Feel free to contact the maintainers if that's a concern.
Report bugs using Github's issues
We use GitHub issues to track public bugs. Report a bug by opening a new issue.
Great Bug Reports tend to have:
- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can.
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
- Adhere to this project's coding style
By contributing, you agree that your contributions will be licensed under its MIT License.