Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Add flake8 pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mforner13 committed Jul 31, 2020
1 parent cd18c00 commit b579569
Show file tree
Hide file tree
Showing 3 changed files with 12 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://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
setup-flake8-hook:
python3 -m venv env
. env/bin/activate && pip install pre-commit && pre-commit install && git config --bool flake8.strict true
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ This file contains all the required environment variable for the application. Sa

The actual values are added to `ready-to-trade` vault. Please use the values corresponding to the `dev` environment.

## Set up a flake8 pre-commit hook locally
To set up a pre-commit hook which will prevent you from committing code with formatting errors, run:
`make setup-flake8-hook`

### Single Sign On (SSO)

The app works out of the box with
Expand Down

0 comments on commit b579569

Please sign in to comment.