-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.pre-commit-config.yaml
69 lines (62 loc) · 1.73 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
61
62
63
64
65
66
67
68
69
fail_fast: true
default_stages: [pre-commit]
exclude: ".git|.tox"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: end-of-file-fixer
- id: check-yaml
- id: mixed-line-ending
args: ["--fix=lf"]
description: Forces to replace line ending by the UNIX 'lf' character.
- id: check-toml
- id: check-merge-conflict
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [flake8-isort]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.13.0'
hooks:
- id: mypy
args:
- "--strict"
- "--ignore-missing-imports"
- "--warn-unused-configs"
- "--warn-redundant-casts"
- "--warn-unused-ignores"
- "--no-implicit-optional"
- "--strict-equality"
- "--strict-concatenate"
- "--check-untyped-defs"
- "--allow-untyped-decorators"
- "--allow-subclassing-any"
- "--no-warn-return-any"
- repo: https://github.com/PyCQA/autoflake
rev: 'v2.3.1'
hooks:
- id: autoflake
args:
- "--in-place"
- "--recursive"
- "--expand-star-imports"
- "--remove-duplicate-keys"
- "--remove-all-unused-imports"
- "--remove-unused-variables"
- "--ignore-init-module-imports"
- repo: https://github.com/PyCQA/pylint
rev: 'v3.3.1'
hooks:
- id: pylint