-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
123 lines (100 loc) · 2.42 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
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
# poetry
[tool.poetry]
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
charmed_kubeflow_chisme = "^0.4.6"
jsonschema = "^4.23.0"
lightkube = "^0.15.7"
ops = "^2.17.0"
pydantic = "^2.10.3"
# Testing tools configuration
[tool.coverage.run]
branch = true
[tool.coverage.report]
show_missing = true
[tool.pytest.ini_options]
minversion = "6.0"
log_cli_level = "INFO"
# Linting tools configuration
[tool.ruff]
line-length = 99
lint.select = ["E", "W", "F", "C", "N", "D", "I001"]
lint.extend-ignore = [
"D203",
"D204",
"D213",
"D215",
"D400",
"D404",
"D406",
"D407",
"D408",
"D409",
"D413",
]
lint.ignore = ["D107"]
extend-exclude = ["__pycache__", "*.egg_info"]
lint.per-file-ignores = {"tests/*" = ["D100","D101","D102","D103","D104"]}
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.codespell]
skip = "build,lib,venv,icon.svg,.tox,.git,.mypy_cache,.ruff_cache,.coverage"
ignore-words-list = "NotIn"
# LSPs and formatters
[tool.pyright]
include = ["src"]
[tool.black]
line-length = 99
target-version = ["py312"]
# Ensures that isort will format code that aligns with black. Used to configure
# potential editors that will have isort installed, for automatically re-ordering
# imports on save.
[tool.isort]
profile = "black"
line_length = 99
# update-requirements
[tool.poetry.group.update-requirements]
optional = true
[tool.poetry.group.update-requirements.dependencies]
poetry-plugin-export = "^1.8.0"
# format
[tool.poetry.group.fmt]
optional = true
[tool.poetry.group.fmt.dependencies]
ruff = "^0.8.0"
black = "^24.10.0"
# lint
[tool.poetry.group.lint]
optional = true
[tool.poetry.group.lint.dependencies]
ruff = "^0.8.0"
codespell = "^2.3.0"
pyright = "^1.1.386"
black = "^24.10.0"
pytest = "^8.3.3"
pytest-operator = ">0.30"
# unit library tests
[tool.poetry.group.unit-library]
optional = true
[tool.poetry.group.unit-library.dependencies]
coverage = { extras = ["toml"], version = ">7.0" }
pytest = "^8.3.3"
pytest-operator = ">0.30"
# unit tests
[tool.poetry.group.unit]
optional = true
[tool.poetry.group.unit.dependencies]
coverage = { extras = ["toml"], version = ">7.0" }
pytest = "^8.3.3"
pytest-operator = ">0.30"
# integration tests
[tool.poetry.group.integration]
optional = true
[tool.poetry.group.integration.dependencies]
tenacity = "^9.0.0"
pytest = "^8.3.3"
pytest-operator = ">0.30"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"