-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (98 loc) · 2.09 KB
/
pyproject.toml
File metadata and controls
118 lines (98 loc) · 2.09 KB
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
[project]
name = "wf_psf"
requires-python = ">=3.9"
authors = [
{ "name" = "Tobias Liaudat", "email" = "tobiasliaudat@gmail.com"},
{ "name" = "Jennifer Pollack", "email" = "jennifer.pollack@cea.fr"},
]
maintainers = [
{ "name" = "Jennifer Pollack", "email" = "jennifer.pollack@cea.fr" },
]
description = 'A software framework to perform Differentiable wavefront-based PSF modelling.'
dependencies = [
"numpy>=1.18,<1.24",
"scipy",
"tensorflow==2.11.0",
"tensorflow-estimator",
"zernike",
"opencv-python",
"pillow",
"galsim",
"astropy",
"matplotlib",
"seaborn",
]
version = "3.1.0"
[project.optional-dependencies]
docs = [
"importlib_metadata",
"myst-parser",
"numpydoc",
"sphinx",
"sphinxcontrib-bibtex",
"sphinxawesome-theme",
"sphinx-gallery",
"sphinxemoji",
"sphinx_rtd_theme",
"scriv",
]
addons = [
"tensorflow-addons",
]
lint = [
"ruff",
"black",
"pre-commit",
]
release = [
"build",
"twine",
]
test = [
"pytest",
"pytest-mock",
"pytest-cov",
"pytest-emoji",
"pytest-raises",
"pytest-xdist",
]
# Install for development
dev = ["wf_psf[docs,lint,release,test]"]
[project.scripts]
wavediff = "wf_psf.run:mainMethod"
[tool.ruff]
line-length = 88
indent-width = 4
# Enable more rules: Pyupgrade (`UP`) and Pydocstyle (`D`)
[tool.ruff.lint]
extend-select = ["UP", "D"]
# Use numpy-style docstrings
[tool.ruff.lint.pydocstyle]
convention = "numpy"
# Enable Ruff's built-in formatter
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
include = ["wf_psf*"]
[tool.setuptools.package-data]
"wf_psf.config" = ["*.conf", "*.yaml"]
# Set per-file-ignores
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "D"]
"*_test.py" = ["D"]
"conftest.py" = ["D"]
[tool.pytest.ini_options]
addopts = [
"--verbose",
"--emoji",
"--cov=wf_psf",
"--cov-report=term-missing",
"--cov-report=xml",
"--junitxml=pytest.xml",
]
testpaths = ["src/wf_psf"]