-
Notifications
You must be signed in to change notification settings - Fork 49
/
.pre-commit-config.yaml
60 lines (60 loc) · 1.77 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python/black
rev: 22.3.0 # synchronize this version number with setup.py
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
args:
- "--count"
- "--show-source"
- "--statistics"
- repo: https://github.com/PyCQA/isort
rev: 5.11.5 # synchronize this version number with setup.py
hooks:
- id: isort
- repo: https://github.com/PyCQA/pydocstyle
rev: 5.1.1
hooks:
- id: pydocstyle
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.990
hooks:
- id: mypy
- repo: local
hooks:
- id: doctest
name: Run doctest
entry: python -m doctest
language: system
files: .+\.rst|README\.md
- id: __init__ + setup.py
name: Check __init__ matches setup.py
entry: python crosshair/tools/check_init_and_setup_coincide.py
language: system
files: __init__\.py|setup\.py
- id: help in doc
name: Check help in doc
entry: python crosshair/tools/check_help_in_doc.py --overwrite
language: system
pass_filenames: false
files: .+\.rst|main\.py
- id: smoke test
name: Run smoke tests
entry: env PYTHONHASHSEED=0 python -m pytest -m smoke -n auto --dist worksteal
language: system
pass_filenames: false
- id: pytest
name: Run all pytest tests
entry: env PYTHONHASHSEED=0 python -m pytest -n auto --dist worksteal
language: system
stages: [manual]
pass_filenames: false