-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
89 lines (77 loc) · 2.04 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
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry]
name = "platform-registry-api"
version = "0.0.0"
description = "Apolo.us platform registry API"
readme = "README.md"
license = "Proprietary"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only"
]
[tool.poetry.scripts]
platform-registry-api = "platform_registry_api.api:main"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
[tool.poetry.dependencies]
python = "^3.13"
aiodns = "^3.2.0"
aiohttp = {version = "^3.11.11", extras = ["speedups"]}
aiohttp-remotes = "^1.3.0"
iso8601 = "^2.1.0"
neuro-auth-client = "^24.8.0"
aiobotocore = "^2.19.0"
neuro-logging = "^25.1.0"
trafaret = "^2.1.1"
yarl = "^1.18.3"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pytest-aiohttp = "^1.1.0"
pytest-asyncio = "^0.25.3"
ruff = "^0.9.4"
mypy = "^1.15.0"
pre-commit = "^4.1.0"
pytest = "^8.3.4"
[tool.ruff]
target-version = "py313"
[tool.ruff.lint]
select = [
"E", "F", "I", "C90", "UP", "B", "ASYNC", "N", "A", "C4", "EM", "FA", "ICN",
"G", "PIE", "T20", "PYI", "PT", "RET", "PTH"
]
ignore = [
"A003", # Class attribute "..." is shadowing a Python builtin
"N818",
"EM101"
]
[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = "tests"
filterwarnings = """
error
ignore::DeprecationWarning:botocore
ignore::DeprecationWarning:jose
ignore:The loop argument is deprecated:DeprecationWarning:
"""
[tool.mypy]
files = ["platform_registry_api", "tests"]
check_untyped_defs = true
disallow_any_generics = true
disallow_untyped_defs = true
follow_imports = "silent"
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
ignore_missing_imports = true
pretty = true
# strict = true