-
Notifications
You must be signed in to change notification settings - Fork 203
/
Copy path.pre-commit-config.yaml
41 lines (39 loc) · 1.05 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-json
exclude: tests/test_files/Mapper/test_error.json
- id: check-merge-conflict
files: \.py$
- id: debug-statements
language_version: python3
files: \.py$
- id: end-of-file-fixer
files: \.py$
- id: mixed-line-ending
- id: pretty-format-json
args: ['--autofix', ]
exclude: tests/test_files/Mapper/test_error.json
- id: trailing-whitespace
files: \.py$
- repo: https://github.com/PyCQA/bandit
rev: 1.7.10
hooks:
- id: bandit
language_version: python3
exclude: (^tests/|^tools/)
args:
- --recursive
- --skip
- B110,B112,B311,B410
- thug
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
hooks:
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format