-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
94 lines (80 loc) · 1.83 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
[project]
name = "mimir-worker-k8s"
version = "0.0" # this is in fact irrelevant
requires-python = "==3.10.*" # https://packages.ubuntu.com/jammy/python3
dependencies = [
"ops>=1.5.0",
# Charm relation interfaces
"pydantic",
# ---PYDEPS---
"cosl>=0.0.43",
# lib/charms/tempo_coordinator_k8s/v0/charm_tracing.py
"opentelemetry-exporter-otlp-proto-http==1.21.0",
]
[project.optional-dependencies]
dev = [
# Linting
"ruff",
"codespell",
# Static
"pyright",
# Unit
"pytest",
"coverage[toml]",
# Integration
"minio",
"tenacity",
"juju",
"pytest-operator",
]
# Testing tools configuration
[tool.coverage.run]
branch = true
[tool.coverage.report]
show_missing = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
minversion = "6.0"
log_cli_level = "INFO"
markers = [
'setup: marks tests as setup (deselect with -m "not setup")'
]
# Linting tools configuration
[tool.ruff]
line-length = 99
extend-exclude = ["__pycache__", "*.egg_info"]
[tool.ruff.lint]
select = ["E", "W", "F", "C", "N", "D", "I001"]
extend-ignore = [
"D105", # Missing docstring in magic method
"D203",
"D204",
"D213",
"D215",
"D400",
"D404",
"D406",
"D407",
"D408",
"D409",
"D413",
]
ignore = ["E501", "D107"]
per-file-ignores = {"tests/*" = ["D100","D101","D102","D103","D104"]}
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.pep8-naming]
# Allow Pydantic's `@validator` decorator to trigger class method treatment.
classmethod-decorators = ["classmethod", "pydantic.validator"]
[tool.ruff.format]
docstring-code-format = true
[tool.pyright]
include = ["src"]
extraPaths = ["lib"]
pythonPlatform = "Linux"
reportUnknownParameterType = true
[tool.codespell]
skip = ".git,build,.venv"
ignore-words-list = "assertIn,aNULL"