-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
94 lines (81 loc) · 2.61 KB
/
pyproject.toml
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: Magenta ApS <https://magenta.dk>
# SPDX-License-Identifier: MPL-2.0
[tool.poetry]
name = "os2mo-init"
version = "0.0.0" # versioning handled by conventional commits
description = "Database initialiser for OS2mo"
authors = ["Magenta <[email protected]>"]
license = "MPL-2.0"
readme = "README.md"
homepage = "https://magenta.dk/"
repository = "https://git.magenta.dk/rammearkitektur/os2mo-init"
keywords = ["os2mo"]
[tool.poetry.dependencies]
python = "^3.11"
pydantic = "^1"
structlog = "^24.1.0"
fastramqpi = "^9"
authlib = "^1.3.1"
more-itertools = "^9"
pyyaml = "^6"
[tool.poetry.group.pre-commit.dependencies]
mypy = "^1.8.0"
pre-commit = "^3.6.0"
ruff = "^0.4.4"
deptry = "^0.16.1"
[tool.poetry.group.test.dependencies]
pytest = "^7.4.0"
pytest-asyncio = "^0.23.7"
pytest-cov = "^5.0.0"
pytest-split = "^0.9.0"
[tool.poetry.group.dev.dependencies]
ariadne-codegen = {version = "^0.7.1", extras = ["subscriptions"]}
types-PyYAML = "^6.0.12.10"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.mypy]
plugins = "pydantic.mypy, pydantic.v1.mypy"
[[tool.mypy.overrides]]
# The module seems to be missing library stubs or py.typed marker
module = "authlib.*"
ignore_missing_imports = true
[tool.ariadne-codegen]
# Ideally, the GraphQL client is generated as part of the build process and
# never committed to git. Unfortunately, most of our tools and CI analyses the
# project directly as it is in Git. In the future - when the CI templates
# operate on the built container image - only the definition of the schema and
# queries should be checked in.
#
# The default package name is `graphql_client`. Make it more obvious that the
# files are not to be modified manually.
target_package_name = "autogenerated_graphql_client"
target_package_path = "os2mo_init/"
client_name = "GraphQLClient"
schema_path = "schema.graphql" # curl -O http://localhost:5000/graphql/v20/schema.graphql
queries_path = "queries.graphql"
include_all_inputs = false
include_all_enums = false
plugins = [
# Return values directly when only a single top field is requested
"ariadne_codegen.contrib.shorter_results.ShorterResultsPlugin",
]
[tool.ariadne-codegen.scalars.DateTime]
type = "datetime.datetime"
parse = "fastramqpi.ariadne.parse_graphql_datetime"
[tool.ariadne-codegen.scalars.UUID]
type = "uuid.UUID"
[tool.coverage.report]
omit = [
"os2mo_init/autogenerated_graphql_client/*",
]
[tool.ruff.lint]
extend-select = ["I"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.deptry]
extend_exclude = [
"os2mo_init/autogenerated_graphql_client/*"
]