-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
97 lines (87 loc) · 1.99 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
[tool.poetry]
name = "ampel-ls4"
version = "0.10.0a0"
description = "LS4 support for the Ampel system"
authors = [
"Alexandra Stronomer <a.stronomer@mail.to>",
]
license = "BSD-3-Clause"
readme = "README.md"
homepage = "https://ampelproject.github.io"
repository = "https://github.com/AmpelAstro}/Ampel-LS4"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Astronomy",
"Typing :: Typed",
]
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 = "^0.10.0"
[tool.poetry.group.dev.dependencies]
ampel-core = "^0.10.0"
mypy = "^1.11.2"
pytest = "^8.3.4"
[build-system]
requires = ["poetry-core>=1.0.0", "setuptools >= 40.6.0", "wheel"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--showlocals -ra"
filterwarnings = [
"error",
]
[tool.mypy]
namespace_packages = true
show_error_codes = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = [
"astropy.*",
"scipy.*",
]
ignore_missing_imports = true
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
select = [
"E4",
"E7",
"E9",
"F",
"I",
"UP",
"B",
"DTZ",
"PT",
"RET",
"SLF",
"SIM",
"PL",
"PERF",
"RUF",
]
ignore = [
"E741", # ambiguous variable name
"UP009", # UTF-8 encoding declaration is unnecessary
"PLR09", # too many (arguments|branches)
"PLR2004", # Magic value used in comparison
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["RUF018"] # assignment in assert is just fine in tests
[tool.ruff.lint.flake8-unused-arguments]
ignore-variadic-names = true