Skip to content

Latest commit

 

History

History
58 lines (35 loc) · 1.35 KB

DEVELOPMENT.rst

File metadata and controls

58 lines (35 loc) · 1.35 KB

Development guidelines

Creating a dev environment

If you don't have pdm installed on your system, take a look at https://pdm-project.org/latest/#installation

Setup the virtual environment by installing the required packages:

$ pdm install

At this point you should install the pre-commit hooks so your commits match those in the project:

$ pdm run pre-commit install

Create your topic branch

$ git branch -b <topic>

Now you're ready to write you're code. Once the code is ready ...

$ pdm run tox

If tox passes, you're ready to create a pull request.

Note: the first commit might take some time while pre-commit installs the needed dependencies.

Using a different Python version

PDM allows you natively to install and use a different Python version during your development.

$ pdm python install 3.12  # Or any version from 3.8 onwards
$ pdm use                  # Will provide you a list of installed Pythons, including the one you installed
$ pdm install              # Recreate your virtual environment

Coding style guidelines

  • We use black for all of our code formatting
  • No large files are allowed.
  • No commits to master are allowed.