Skip to content

Latest commit

 

History

History
executable file
·
52 lines (42 loc) · 2.49 KB

CONTRIBUTE.md

File metadata and controls

executable file
·
52 lines (42 loc) · 2.49 KB

Contribution

Git Branch Policies and CI

Merging with main requires a pull request that has to pass a check defined in the ci.yml github workflow. The check ensures the code is formatted, linted, docstrings exist and are styles correctly and run tests. You can't push directly to main. Create a branch, then open a PR for merging with main. Tip: You can create branches directly from issues.

Dev Setup

This package is developed with poetry. Find installation instructions here

  1. Clone Repo
  2. Install dependencies:
poetry install
  1. Set up pre-commit hooks:
poetry run pre-commit install --hook-type commit-msg

This will ensure the code is formatted, linted, docstrings exist and are styled correctly and run tests.

IDE requirements

Install Black for formatting tooltips and Ruff for linting tooltips in your IDE.

Dev Workflow

We are using the GitHub Flow specified here.

Commit messages

Versioning

  • We are following this specification for versioning: SemVer

Code documentation

This project uses pydocstyle to enforce the existance and style of docstrings. Googles style guidelines are used. To check whether your docstrings are consistent with these guidelines, run:

poetry run pydocstyle ./pytracking_cdm

Testing

To test ensure the package functions as intended after making changes, run:

poetry run pytest -svv     

Tests are defined in ./tests/test_pytracking_cdm.py

Sources