forked from snok/drf-openapi-tester
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
64 lines (60 loc) · 1.54 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-ast
- id: check-json
- id: check-yaml
- id: check-merge-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.3
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/asottile/pyupgrade
rev: v3.8.0
hooks:
- id: pyupgrade
args: [ "--py3-plus", "--py36-plus", "--py37-plus" ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
hooks:
- id: mypy
additional_dependencies:
- django-stubs
- djangorestframework
- djangorestframework-stubs
- types-PyYAML
- drf-yasg
- drf-spectacular
- setuptools
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: python
types: [ python ]
args: [ "--extension-pkg-allow-list=orjson"]
exclude: tests|test_project|manage.py
additional_dependencies:
- django
- djangorestframework
- inflection
- openapi-spec-validator
- prance
- pyYAML
- django-stubs
- djangorestframework-stubs
- drf_yasg
- drf-spectacular
- pylint
- faker
- orjson