-
Notifications
You must be signed in to change notification settings - Fork 204
/
.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: v2.4.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.6.2
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.1.13
hooks:
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format