This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
108 lines (100 loc) · 2.97 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
description: Sorts import statements
args:
- --profile=black
- --line-length=120
- repo: https://github.com/myint/eradicate
rev: v2.1.0
hooks:
- id: eradicate
description: Eradicate removes unused commented code
args:
- --in-place
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
hooks:
- id: pyupgrade
name: pyupgrade
description: Pyupgrade replaces deprecated syntax with the newest syntax
args:
- --py37-plus
- repo: https://github.com/PyCQA/autoflake
rev: v1.5.3
hooks:
- id: autoflake
args:
- --remove-all-unused-imports
- --remove-unused-variables
- --in-place
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
name: black
description: Black is an automatic Python code formatter. It ensures code readability and PEP8 compliance.
args:
- --line-length=120
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.961
hooks:
- id: mypy
name: mypy
additional_dependencies:
- types-PyYAML
- types-requests
- pydantic
args:
- --strict
- --ignore-missing-imports
- --allow-untyped-decorators
- --implicit-reexport
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
name: flake8
description: Flake8 is a command-line utility for enforcing style consistency across Python projects.
additional_dependencies:
- flake8-json
- flake8-adjustable-complexity
- flake8-annotations-coverage
- flake8-builtins
- flake8-cognitive-complexity
- flake8-comprehensions
- flake8-expression-complexity
- flake8-functions
- flake8-simplify
- flake8-scream
- pep8-naming
- flake8-bugbear
- flake8-print
- flake8-use-pathlib
- pylint
- flake8-pylint
args:
- --count
- --max-line-length=130
- --exclude=*test*
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
description: Ensures no big files are commited
- id: check-json
description: Ensures valid JSON
- id: check-yaml
description: Ensures valid YAML
- id: check-case-conflict
description: Ensures there are no name conflicts in case insesnsitive systems
- id: check-merge-conflict
description: Ensures there are no merge conflict lines
- id: detect-private-key
description: Detects commited private keys
- id: pretty-format-json
description: Prettifies JSON