diff options
| author | Yuval Adam <_@yuv.al> | 2020-09-23 17:59:22 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2020-09-23 17:59:48 +0300 |
| commit | 52cab1db5ceda420110339c7de27173ffbdbe19c (patch) | |
| tree | 06a596d4b2471d390a804592d3e553c10cd48aae | |
| parent | a1aeb3d7f47522b6f1e33cc0a6391edffb4e4937 (diff) | |
Add pre-commit yaml
| -rw-r--r-- | .pre-commit-config.yaml | 22 | ||||
| -rw-r--r-- | README.md | 3 |
2 files changed, 24 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..72538a9 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,22 @@ +fail_fast: true +repos: +- repo: local + hooks: + - id: format + name: Format + stages: [commit] + language: system + entry: pipenv run format + types: [python] + - id: lint + name: Lint + stages: [commit] + language: system + entry: pipenv run lint + types: [python] + - id: test + name: Test + stages: [commit] + language: system + entry: pipenv run test + types: [python] @@ -3,6 +3,7 @@ ## Dev ```bash -$ pipenv sync +$ pipenv sync -d +$ pipenv run pre-commit install $ pipenv run server ``` |
