Skip to content

Commit

Permalink
Introduce pre-commit hooks (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliverc committed Oct 8, 2018
1 parent 522f58b commit 43e939f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
@@ -0,0 +1,18 @@
repos:
- repo: local
hooks:
- id: black
name: black
language: system
entry: black
types: [python]
- id: isort
name: isort
language: system
entry: isort -y
types: [python]
- id: flake8
name: flake8
language: system
entry: flake8
types: [python]
13 changes: 12 additions & 1 deletion README.md
Expand Up @@ -23,13 +23,24 @@ make start

And access GraphiQL at [http://localhost:8000/graphql](http://localhost:8000/graphql)

## Testing
## Development

### Testing
Run tests by executing:

```bash
make install-dev
make test
```

### Setup pre commit

Pre commit hooks is an additional option instead of excuting checks in your editor of choice.

```bash
pip install pre-commit
pre-commit install
```

## License
Code released under the [MIT license](LICENSE).

0 comments on commit 43e939f

Please sign in to comment.