Skip to content

Latest commit

 

History

History
51 lines (27 loc) · 1.68 KB

CONTRIBUTING.md

File metadata and controls

51 lines (27 loc) · 1.68 KB

Contributing

Setting up a development environment

Conventions

Code should be formatted with Black. Imports should be sorted with isort.

To format code and sort imports, use nox -rs format.

Docstrings should conform to PEP 257.

To check for conformance using pydocstyle, use nox -rs pydocstyle.

Pylint

Pylint can catch some types of errors without running a pipeline.

To run Pylint, use nox -rs lint

Tests

To run tests, use nox -rs test

Use pytest to run tests.

Documentation

To build documentation with Sphinx, use nox -rs build_docs.

reStructuredText references:

To view documentation (after building it), use nox -rs serve_docs and open http://localhost:8000 in a web browser.

Dependencies

List dependencies in the install_requires section of setup.cfg.

For development dependencies, list direct dependencies in requirements.dev.in and use pip-compile to generate requirements.dev.txt (nox -rs pip_compile -- requirements.dev.in).