Skip to content

Commit

Permalink
Merge pull request #260 from arunpersaud/precommit
Browse files Browse the repository at this point in the history
Precommit
  • Loading branch information
markbandstra committed Apr 16, 2021
2 parents 3db9021 + 930f753 commit f3c4387
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ Please follow these guidelines when contributing to this project.
pip install -r requirements.txt
pip install -r requirements-dev.txt
python setup.py develop
pip install pre-commit
pre-commit install
```

(It is more convenient to use `develop` so that the code is soft-linked
from the installation directory, and the installed package will always use
the current version of code.)

We use [`pre-commit`](https://pre-commit.com/) to automatically run black.

### Running the tests

(Requires `requirements-dev.txt` to be installed)
Expand Down

0 comments on commit f3c4387

Please sign in to comment.