-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
123 lines (113 loc) · 2.55 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling", "hatch-vcs"]
[project]
authors = [{ name = "Ian Czekala", email = "[email protected]" }]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"numpy",
"fast-histogram",
"scipy",
"torch>=1.8.0",
"torchvision",
"torchaudio",
"torchkbnufft",
"astropy",
]
description = "Regularized Maximum Likelihood Imaging for Radio Astronomy"
dynamic = ["version"]
name = "MPoL"
readme = "README.md"
requires-python = ">=3.8"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"matplotlib",
"requests",
"astropy",
"tensorboard",
"mypy",
"frank>=1.2.1",
"sphinx>=7.2.0",
"jupytext",
"ipython!=8.7.0", # broken version for syntax higlight https://github.com/spatialaudio/nbsphinx/issues/687
"nbsphinx",
"sphinx_book_theme>=0.9.3",
"sphinx_copybutton",
"jupyter",
"nbconvert",
"sphinxcontrib-mermaid>=0.8.1",
"myst-nb",
"jupyter-cache",
"Pillow",
"asdf",
"pyro-ppl",
"arviz[all]",
"visread>=0.0.4",
"ruff"
]
test = [
"pytest",
"pytest-cov",
"matplotlib",
"requests",
"tensorboard",
"mypy",
"visread>=0.0.4",
"frank>=1.2.1",
"ruff"
]
[project.urls]
Homepage = "https://mpol-dev.github.io/MPoL/"
Issues = "https://github.com/MPoL-dev/MPoL/issues"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/mpol/mpol_version.py"
[tool.black]
line-length = 88
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = [
"astropy.*",
"matplotlib.*",
"scipy.*",
"torchkbnufft.*",
"frank.*",
"fast_histogram.*"
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"MPoL.constants",
"MPoL.coordinates",
"MPoL.datasets",
"MPoL.fourier",
"MPoL.geometry",
"MPoL.gridding",
"MPoL.images",
"MPoL.losses",
"MPoL.precomposed",
"MPoL.utils"
]
disallow_untyped_defs = true
[tool.ruff]
target-version = "py310"
line-length = 88
# will enable after sorting module locations
# select = ["F", "I", "E", "W", "YTT", "B", "Q", "PLE", "PLR", "PLW", "UP"]
lint.ignore = [
"E741", # Allow ambiguous variable names
"PLR0911", # Allow many return statements
"PLR0913", # Allow many arguments to functions
"PLR0915", # Allow many statements
"PLR2004", # Allow magic numbers in comparisons
]
exclude = []