Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 991 Bytes

CONTRIBUTING.md

File metadata and controls

51 lines (41 loc) · 991 Bytes

Contribution

Development

Setup

  1. Clone the repository
    git clone https://github.com/dldevinc/paper-forms
  2. Create a virtualenv
    cd paper-forms
    virtualenv .venv
  3. Activate virtualenv
    source .venv/bin/activate
  4. Install dependencies as well as a local editable copy of the library
    pip install -r ./requirements.txt
    pip install -e .
  5. Run test project:
    python3 manage.py migrate
    python3 manage.py runserver

Pre-Commit Hooks

We use pre-commit hooks to simplify linting and ensure consistent formatting among contributors. Use of pre-commit is not a requirement, but is highly recommended.

pip install pre-commit
pre-commit install

Commiting will now automatically run the local hooks and ensure that your commit passes all lint checks.

Testing

To run unit tests:

pytest