-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
86 lines (76 loc) · 1.51 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
[tool.poetry]
name = "ampel-photometry"
version = "0.10.2a0"
description = "Photometry add-on for the Ampel system"
authors = ["Valery Brinnel"]
license = "BSD-3-Clause"
packages = [
{include = "ampel"}
]
exclude = [
"ampel/py.typed",
]
include = [
'conf/*/*.json',
'conf/*/*/*.json',
'conf/*/*.yaml',
'conf/*/*/*.yaml',
'conf/*/*.yml',
'conf/*/*/*.yml',
]
[tool.poetry.dependencies]
python = "^3.10"
ampel-interface = {version = ">=0.10.4.post2,<0.11"}
astropy = ">=5"
[tool.poetry.dev-dependencies]
pytest = "^8.3.3"
mypy = "^1.13.0"
pytest-cov = "^6.0.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--showlocals -r a"
filterwarnings = [
"error",
]
[tool.mypy]
namespace_packages = true
show_error_codes = true
[[tool.mypy.overrides]]
module = [
"astropy.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "ampel.abstract.*"
disable_error_code = "empty-body"
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
select = [
"E4",
"E7",
"E9",
"F",
"I",
"UP",
"B",
"DTZ",
"T20",
"PT",
"RET",
"SLF",
"SIM",
"PL",
"PERF",
"RUF",
]
ignore = [
"UP009", # UTF-8 encoding declaration is unnecessary
"PLR09", # too many (arguments|branches)
"RUF012", # mutable class properties (are harmless everywhere BaseModel is used)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["T20", "E731", "SLF001", "PLR2004"]