-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
136 lines (122 loc) · 3.07 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
124
125
126
127
128
129
130
131
132
133
134
135
136
[tool.poetry]
name = "ampel-lsst"
version = "0.10.0a1"
description = "Legacy Survey of Space and Time support for the Ampel system"
authors = [
"Marcus Fenner <[email protected]>",
"Valery Brinnel",
"Jakob van Santen <[email protected]>",
"Jakob Nordin",
]
maintainers = [
"Marcus Fenner <[email protected]>"
]
license = "BSD-3-Clause"
readme = "README.md"
homepage = "https://ampelproject.github.io"
repository = "https://github.com/AmpelProject/Ampel-LSST"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Astronomy",
"Typing :: Typed",
]
packages = [
{include = "ampel"}
]
include = [
'conf/*/*.json',
'conf/*/*/*.json',
'conf/*/*.yaml',
'conf/*/*/*.yaml',
'conf/*/*.yml',
'conf/*/*/*.yml',
]
[tool.poetry.dependencies]
python = "^3.10"
astropy = ">=5"
confluent-kafka = {version = "^2.6.1", optional = true}
fastavro = "^1.3.2"
ampel-ztf = {version = ">=0.10.3a0,<0.11"}
[tool.poetry.extras]
kafka = ["confluent-kafka"]
[tool.poetry.dev-dependencies]
pytest = "^8.0.2"
pytest-cov = "^6.0.0"
pytest-mock = "^3.12.0"
mongomock = "^4.1.2"
# mongomock uses pkg_resources
setuptools = {version = "*", python = ">=3.12"}
mypy = "^1.6.1"
pytest-timeout = "^2.2.0"
pytest-asyncio = "^0.24.0"
types-requests = "^2.25.9"
before_after = "^1.0.1"
[build-system]
requires = ["poetry-core>=1.0.0", "setuptools >= 40.6.0", "wheel"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.run]
relative_files = true
[tool.mypy]
namespace_packages = true
plugins = [
"pydantic.mypy",
"numpy.typing.mypy_plugin"
]
show_error_codes = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"astropy.*",
"bson.*",
"confluent_kafka.*",
"sncosmo.*"
]
ignore_missing_imports = true
[tool.isort]
profile = "black"
multi_line_output = 3
remove_redundant_aliases = true
combine_as_imports = true
skip_gitignore = true
py_version = "39"
include_trailing_comma = true
line_length = 79
[tool.black]
line-length = 79
target-version = ['py39','py310']
[tool.ruff]
line-length = 79
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # bugbear
"DTZ", # datetimez
"T20", # print
"PT", # pytest-style
"RET", # return
"SLF", # self
"SIM", # simplify
"ARG", # unused-arguments
"PL", # pylint
"PERF", # perflint
"RUF", # ruff
]
ignore = [
"E501", # line too long
"PLR09", # too many (arguments|branches)
"PLR2004", # Magic value used in comparison
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
# fine for AmpelUnit, actually (ruff has a special case for pydantic)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["RUF018"]
[tool.ruff.lint.flake8-unused-arguments]
ignore-variadic-names = true