Skip to main content

CONTRIBUTING.md

1# CONTRIBUTING
3You can set up a local development environment by cloning the repo and installing dependencies:
5```console
6$ git clone git://alexwlchan.net/projects/javascript-data-files.git
7$ cd chives
8$ python3 -m venv .venv
9$ source .venv/bin/activate
10$ pip install -e .
11```
13If you want to run tests, install the dev dependencies and run the `run_javascript_data_files_tests.sh` script:
15```console
16$ # Activate the virtualenv
17$ source .venv/bin/activate
19$ # Install dev dependencies
20$ pip install -r dev_requirements.txt
22$ # Run tests
23$ bash scripts/run_javascript_data_files_tests.sh
24```
26To make changes:
281. Create a new branch
292. Work on your changes in that branch, iterating until your change works as expected and the tests pass
303. Commit your changes
314. Export your changes to a patch file:
33 ```console
34 $ git format-patch <branch_name> --stdout
35 ```
375. Email me your patch file for review.