-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.19 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
33
34
35
36
37
38
39
fail_fast: true
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 warg --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 warg --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=*exclude*
language: system
pass_filenames: false
always_run: true
# - repo: local
# hooks:
# - id: sphinx-check
# name: sphinx-check
# entry: docs/make.sh
# language: script
# types: [ python ]
# pass_filenames: false