-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
122 lines (107 loc) · 2.82 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
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[project]
name = "amical"
version = "1.6.0"
authors = [
{ name = "Anthony Soulain", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: AIX",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Astronomy",
"Typing :: Typed",
]
requires-python = ">=3.8"
dependencies = [
"astropy>=5.0",
"astroquery",
"corner",
"emcee",
"h5py",
"matplotlib",
"numpy",
"pypdf>=3.2.0",
"rich>=13.5.2",
"scipy",
"uncertainties",
"importlib_resources>=1.3; python_version < '3.9'",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.license]
text = "MIT"
[project.urls]
Homepage = "https://github.com/SydneyAstrophotonicInstrumentationLab/AMICAL"
[project.scripts]
amical = "amical._cli.main:main"
[tool.setuptools]
license-files = [
"LICENSE",
]
include-package-data = false
[tool.setuptools.packages.find]
exclude = [
"tests*",
"doc*",
]
namespaces = false
[tool.setuptools.package-data]
amical = [
"internal_data/*.fits",
"py.typed",
]
[tool.ruff.lint]
exclude = ["*__init__.py", "amical/externals/*"]
ignore = ["E501"]
select = [
"E",
"F",
"W",
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"YTT", # flake8-2020
"I", # isort
"UP", # pyupgrade
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
filterwarnings = [
"error",
# we run tests against a non-GUI backend on purpose
"ignore:Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.:UserWarning",
"ignore:FigureCanvasAgg is non-interactive, and thus cannot be shown:UserWarning",
# np.product is used in h5py up to version 3.8.0
# https://github.com/h5py/h5py/pull/2242
"ignore:`product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.:DeprecationWarning",
'ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated:DeprecationWarning', # https://github.com/dateutil/dateutil/pull/1285
]
[tool.coverage.run]
omit = [
"amical/externals/*",
]
[tool.coverage.report]
omit = [
"amical/externals/*",
"amical/dpfit.py",
]
[tool.mypy]
python_version = 3.8
ignore_missing_imports = true
warn_unused_configs = true
warn_unused_ignores = true
warn_unreachable = true
show_error_context = true
show_error_codes = true