-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
47 lines (43 loc) · 1.04 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
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-toml
- id: check-yaml
args:
- --unsafe
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: ruff
name: ruff
entry: ruff meiga tests --fix
language: system
types: [ python ]
require_serial: true
fail_fast: true
- id: isort
name: isort
entry: isort meiga tests
language: system
types: [ python ]
require_serial: true
fail_fast: true
- id: black
name: black
entry: black meiga tests
language: system
types: [ python ]
require_serial: true
fail_fast: true
- id: pyupgrade
name: Pyupgrade
entry: pyupgrade --py37-plus
types: [ python ]
language: system
exclude: ^docs/.*$
fail_fast: true