Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.99 KB

CONTRIBUTING.md

File metadata and controls

54 lines (39 loc) · 1.99 KB

Contributing

Contributions to BoFire are highly welcome!

Pull Requests

Pull requests are highly welcome:

  1. Create a fork from main.
  2. Add or adapt unit tests according to your change.
  3. Add doc-strings and update the documentation. You might consider contributing to the tutorials section.
  4. Make sure that the GitHub pipeline passes.

Development Environment

We recommend an editable installation. After cloning the repository via

git clone https://github.com/experimental-design/bofire.git

and cd bofire, you can proceed with

pip install -e ".[all]"

Afterwards, you can check that the tests are successful via

pytest tests/

Coding Style

We format our code with Black. Our doc-strings are in Google-style. Further, we use Ruff for linting.

In our CI/CD pipeline we check if contributions are compliant to Black and Ruff. To make contributors' lives easier, we have pre-commit hooks for Black and Ruff configured in the versions corresponding to the pipeline. Pre-commit hooks can be installed via

pip install pre-commit
pre-commit install

in you local project root folder, if you want to use pre-commit.

Type checks

We make heavy use of Pydantic to enforce type checks during runtime. Further, we use Pyright for static type checking. We enforce Pyright type checks in our CI/CD pipeline.

Documentation

We use MkDocs with material theme and deploy our documentation to https://experimental-design.github.io/bofire/. Thereby, an API description is extracted from the doc-strings. Additionally, we have tutorials and getting-started-sections.

License

By contributing you agree that your contributions will be licensed under the same BSD 3-Clause License as BoFire.