-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
91 lines (77 loc) · 2.14 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
[tool.poetry]
name = "qualibrate"
version = "0.1.5"
description = ""
authors = ["Quantum Machines <[email protected]>"]
repository = "https://github.com/qua-platform/qualibrate"
packages = [{ include = "qualibrate_composite" }]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9,<3.13"
fastapi = "^0.115.2"
uvicorn = "^0.34.0"
pydantic = "^2.7.4"
pydantic-settings = "^2.3.4"
click = "^8.1.7"
tomli = { version = "^2.0.1", python = "<3.11" }
tomli-w = "^1.0.0"
qualibrate-core = "^0.2.4"
qualibrate-runner = "^0.2.4"
qualibrate-app = "^0.2.5"
qualibrate-config = "^0.1.1"
[tool.poetry.group.dev.dependencies]
mypy = "^1.8.0"
ruff = "^0.8.0"
poethepoet = "^0.31.1"
#[tool.poetry.group.qm-dev.dependencies]
#qualibrate-config = {path = "../qualibrate-config", develop = true}
#qualibrate-app = {path = "../qualibrate-app/backend", develop = true}
#qualibrate-runner = {path = "../qualibrate-runner", develop = true}
#qualibrate-core = {path = "../qualibrate-core", develop = true}
[tool.poetry.group.test.dependencies]
pytest = "^8.0.0"
pytest-mock = "^3.12.0"
[tool.poetry.scripts]
qualibrate = "qualibrate_composite.__main__:main"
[tool.mypy]
python_version = "3.9"
strict = true
warn_return_any = true
exclude = ['tests/']
[[tool.mypy.overrides]]
# TODO: add py.typed to json_timeline_database and remove from ignore imports
module = [
"jsonpatch",
"jsonpointer",
"qualibrate_app.*",
"qualibrate_runner.*",
"json_timeline_database.*",
]
ignore_missing_imports = true
[tool.ruff]
line-length = 80
target-version = "py39"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
]
[tool.ruff.lint.pycodestyle]
max-line-length = 80
max-doc-length = 80
[tool.poe.tasks]
lint = "ruff check ."
lint-fix = "ruff check --fix ."
format = "ruff format --check ."
format-fix = "ruff format ."
type = "mypy ."
check.sequence = ["lint", "format", "type"]
fix.sequence = ["lint-fix", "format-fix", "type"]
fix.ignore_fail = "return_non_zero"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"