-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
94 lines (75 loc) · 2.33 KB
/
.pre-commit-config.yaml
File metadata and controls
94 lines (75 loc) · 2.33 KB
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
# SPDX-FileCopyrightText: 2023 Magenta ApS <https://magenta.dk>
# SPDX-License-Identifier: MPL-2.0
default_language_version:
python: python3.11
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.11.1
hooks:
- id: pyupgrade
args: [ "--py311-plus" ]
exclude: ^manager_terminator/autogenerated_graphql_client/
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
exclude: ^manager_terminator/autogenerated_graphql_client/
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.11.0
hooks:
- id: reorder-python-imports
exclude: ^manager_terminator/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=135" ]
exclude: ^manager_terminator/autogenerated_graphql_client/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
- id: mypy
args: [
"--ignore-missing-imports",
"--config-file=pyproject.toml",
"--no-strict-optional"]
additional_dependencies:
- fastapi
- gql
- httpx
- pydantic==1.10.12
- pytest
- structlog
exclude: ^tests/|main.py
# TODO: Shouldn't only be one this file?
files: tests/test_data.py
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
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/fsfe/reuse-tool
rev: v2.1.0
hooks:
- id: reuse