-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
36 lines (34 loc) · 1.03 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
default_language_version:
python: python3
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: [ --profile, black ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: debug-statements
- repo: https://github.com/ambv/black
rev: 23.7.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
args: [ --recursive, --exclude, tests ]
# Commenting this out for the moment due to the unexpected issue
# with this mirror repository of mypy, which fails with sqlmodel.SQLModel
# with the following error:
# Unexpected keyword argument "table" for "__init_subclass__" of "object"
# There may be ground to file an issue on the repo.
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.942
# hooks:
# - id: mypy
# additional_dependencies: [types-requests==2.27.16]