Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.14 KB

CONTRIBUTING.md

File metadata and controls

40 lines (34 loc) · 1.14 KB

Contribution guide

Any contribution is welcome. If you noticed a bug or have a feature idea create a new Issue in Github Issues. For small fixes it's enough to create PR with description.

Table of Contents:

Dev environment

  • Install prerequisites from dev-requirements.txt:
pip install -r dev-requirements.txt
  • Install py-automapper dependencies with poetry:
poetry install

Pre-commit

This project is using pre-commit checks to format and verify code. Same checks are used on CI as well. Activate pre-commit for your local setup:

pre-commit install

After this code checks will run on git commit command.

If some of the pre-commit dependencies are not found make sure to activate appropriate poetry virtualenv. To check path to virtual environment run:

poetry env info -p

Or run pre-commit manually:

poetry run pre-commit run --all-files

Run tests

To run unit tests use command:

poetry run pytest tests/