forked from cnheider/jord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
32 lines (32 loc) · 1.02 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
fail_fast: true
#exclude: '^exclude'
repos:
- repo: https://github.com/ambv/black
rev: 23.3.0
hooks:
- id: black
language_version: python3.10
- repo: local
hooks:
- id: pytest-check
name: pytest-check
entry: pytest
language: system
pass_filenames: false
always_run: true
- repo: local
hooks:
- id: flake8-check1 # stop the build if there are Python syntax errors or undefined names
name: flake8-check1
entry: flake8 jord --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=*exclude*
language: system
pass_filenames: false
always_run: true
- repo: local
hooks:
- id: flake8-check2 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
name: flake8-check2
entry: flake8 jord --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=*exclude*
language: system
pass_filenames: false
always_run: true