-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
106 lines (87 loc) · 2.58 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
# SPDX-FileCopyrightText: 2022 Magenta ApS <https://magenta.dk>
# SPDX-License-Identifier: MPL-2.0
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.8.0
hooks:
- id: pyupgrade
args: [ "--py311-plus" ]
exclude: |
(?x)(
^autogenerated_graphql_client/|
)
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
exclude: |
(?x)(
^autogenerated_graphql_client/|
)
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.10.0
hooks:
- id: reorder-python-imports
exclude: |
(?x)(
^autogenerated_graphql_client/|
)
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
args: [ "--extend-ignore=B008,W503,E203", "--max-line-length=101" ]
exclude: |
(?x)(
^autogenerated_graphql_client/|
)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
args: [ "--ignore-missing-imports", "--config-file=pyproject.toml", "--no-strict-optional" ]
additional_dependencies:
- fastapi
- gql
- httpx
- pydantic==1.10.11
- pytest
- structlog
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.6
hooks:
- id: prettier
files: \.(js|vue|css|html)$
exclude: ^autogenerated_graphql_client/
- repo: https://github.com/magenta-aps/pre-commit-hooks
rev: 477acf0d
hooks:
- id: auto-ticket-prepare-commit
- id: auto-ticket-commit
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.4.0
hooks:
- id: check-builtin-literals
exclude: ^autogenerated_graphql_client/
- id: check-byte-order-marker
exclude: ^autogenerated_graphql_client/
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: pretty-format-json
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/dosisod/refurb
rev: v1.17.0
hooks:
- id: refurb
exclude: |
(?x)(
^autogenerated_graphql_client/|
)
- repo: https://github.com/fsfe/reuse-tool
rev: v2.1.0
hooks:
- id: reuse