-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
69 lines (58 loc) · 1.43 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
[tool.poetry]
name = "ash"
version = "0.4.0"
description = "Ayon service host"
authors = ["Ynput <[email protected]>", "Martin Wacker <[email protected]"]
[tool.poetry.dependencies]
python = "^3.10"
requests = "^2.28.1"
nxtools = "^1.6"
pydantic = "^1.10.2"
psutil = "^5.9.2"
python-dotenv = "^0.21.0"
docker = "^6.0.0"
[tool.poetry.dev-dependencies]
ruff = "^0.3"
mypy = "^1.8"
types-requests = "^2.31.0.20240311"
kubernetes-typed = "^18.20.2"
pre-commit = "^2.20.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 88
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"ISC001", # incompatible with formatting
"E721", # do not compare types, i'll fix this later :)
"C901", # too complex. C'mon - this is a complex project
]
[tool.mypy]
plugins = [
"pydantic.mypy"
]
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
explicit_package_bases = true
strict_optional = true
exclude = "^[test|tool].*"
# for strict mypy: (this is the tricky one :-))
disallow_untyped_defs = true