-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (106 loc) · 2.71 KB
/
pyproject.toml
File metadata and controls
123 lines (106 loc) · 2.71 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[tool.poetry]
name = "rasenmaeher_api"
version = "1.15.1"
description = "python-rasenmaeher-api"
authors = [
"Aciid <703382+Aciid@users.noreply.github.com>",
"Eero 'rambo' af Heurlin <eero.afheurlin@iki.fi>",
]
homepage = "https://github.com/pvarki/python-rasenmaeher-api"
repository = "https://github.com/pvarki/python-rasenmaeher-api"
license = "MIT"
readme = "README.rst"
[tool.poetry.scripts]
rasenmaeher_api = "rasenmaeher_api.console:rasenmaeher_api_cli"
[tool.black]
line-length = 120
target-version = ['py311']
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| __pycache__
)
'''
[tool.mypy]
strict=true
[[tool.mypy.overrides]]
module="tests"
disallow_untyped_decorators=false
[tool.pytest.ini_options]
junit_family="xunit2"
addopts="--cov=rasenmaeher_api --cov-fail-under=65 --cov-branch"
asyncio_mode="strict"
asyncio_default_fixture_loop_scope = "session"
[tool.pylint.MASTER]
extension-pkg-allow-list = "pydantic"
[tool.pylint.format]
max-line-length = 120
[tool.pylint.design]
max-parents = 10
[tool.pylint.messages_control]
disable=["fixme", "W1202", "C0209"]
[tool.pylint.similarities]
min-similarity-lines = 8
ignore-imports = true
[tool.coverage.run]
omit = ["tests/*"]
branch = true
[[tool.poetry.source]]
name = "nexuslocal"
url = "https://nexus.dev.pvarki.fi/repository/pypilocal/simple"
priority = "explicit"
[tool.poetry.dependencies]
python = "^3.11"
libadvian = "^1.6"
click = "^8.0"
cryptography = ">=46.0.5"
fastapi = ">=0.89,<1.0" # caret behaviour on 0.x is to lock to 0.x.*
pydantic = ">=2.0,<3.0"
pydantic-settings = ">=2.0,<3.0"
requests = "^2.31"
multikeyjwt = "^1.5"
uvicorn = {version = "^0.20", extras = ["standard"]}
gunicorn = "^20.1"
pyopenssl = "^25.3"
libpvarki = { version="^2.2", source="nexuslocal"}
openapi-readme = "^0.2"
python-multipart = ">=0.0.21,<1.0.0"
aiohttp = ">=3.11.10,<4.0"
aiodns = "^3.0"
brotli = "^1.0"
cchardet = { version="^2.1", python="<=3.10"}
filelock = "^3.12"
python-keycloak = "^4.2.0"
sqlmodel = ">=0.0.37,<1.0"
psycopg2-binary = "^2.9"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4"
coverage = "^7.3"
pytest-cov = "^4.1"
pylint = "^4.0"
black = "^25.9"
bandit = "^1.8"
mypy = "^1.18"
pre-commit = "^3.3"
pytest-asyncio = ">=0.23,<1.0" # caret behaviour on 0.x is to lock to 0.x.*
bump2version = "^1.0"
detect-secrets = "^1.2"
httpx = ">=0.23,<1.0" # caret behaviour on 0.x is to lock to 0.x.*
types-requests = "^2.31"
async-asgi-testclient = "^1.4"
pytest-docker = "^2.0"
flaky = "^3.8"
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"