This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
devicehub-teal/CONTRIBUTING.md

788 B

; SHARED on https://pad.cas.cat/usody-devicehub-contributing

Contributing to devicehub

Writing code

Coding style

Python style

  • Unless otherwise specified, follow PEP 8. Use flake8 to check for problems in this area.
  • Use isort to automate import sorting.

To automatize this work just configure pre-commit hooks in your development environment:

# on your virtual environment
pip install -r requirements-dev.txt
pre-commit install

HTML (templates)

  • Template file names should be all lowercase, using underscores instead of camelCase.

    Do this: device_detail.html

    Don't do this: DeviceDetail.html, Device-detail.html