-
Notifications
You must be signed in to change notification settings - Fork 52
/
pyproject.toml
95 lines (79 loc) · 1.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
95
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "runboat"
authors = [{name = "St\u00e9phane Bidoul", email = "[email protected]"}]
readme = "README.md"
classifiers = [
"License :: OSI Approved :: MIT License",
]
dependencies = [
"ansi2html",
"fastapi>=0.93",
"gunicorn",
"httpx",
"jinja2",
"kubernetes",
"pydantic>=2",
"pydantic-settings",
"rich",
"sse-starlette",
"uvicorn",
]
requires-python = "==3.12.*"
dynamic = ["version", "description"]
[project.optional-dependencies]
test = [
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-dotenv",
"pytest-mock",
]
mypy = [
"mypy>=0.930",
"types-urllib3",
]
[project.urls]
Home = "https://github.com/sbidoul/runboat"
# ruff
[tool.ruff]
fix = true
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
"C90", # mccabe
"I", # isort
"UP", # pyupgrade
"T10", # flake8-debugger
"T20", # flake8-print
"PLE", # pylint errors
"RUF",
]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.isort]
known-first-party = ["runboat"]
# pytest
[tool.pytest.ini_options]
env_override_existing_values = 1
env_files = [".env.test"]
asyncio_mode = "strict"
# mypy
[tool.mypy]
strict = true
show_error_codes = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = ["kubernetes.*"]
ignore_missing_imports = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
# pip-deepfreeze
[tool.pip-deepfreeze.sync]
extras = "test,mypy"