-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
56 lines (48 loc) · 1.13 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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
exclude: .bumpversion.cfg
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
hooks:
- id: ruff
args: ["--fix"]
- repo: local
hooks:
- name: twine check [on bumpversion]
id: ./setup.py bdist_wheel && twine check dist/*.whl
entry: bash -c '
if [ "${BUMPVERSION_NEW_VERSION+x}" = "" ]; then
echo skipped;
else
./setup.py bdist_wheel;
twine check dist/*.whl;
fi'
language: system
pass_filenames: false
verbose: true
- name: tox
id: tox --parallel
entry: tox --parallel
language: system
pass_filenames: false
verbose: true
- name: coverage
id: ./setup.py test_coverage
entry: ./setup.py test_coverage
language: system
pass_filenames: false
verbose: true