Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
169 lines (149 loc) · 3.86 KB
/
Copy pathpyproject.toml
File metadata and controls
169 lines (149 loc) · 3.86 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["miepython"]
include-package-data = false
[tool.setuptools.package-data]
miepython = ["data/*.txt"]
[project]
name = "miepython"
authors = [{name = "Scott Prahl", email = "scott.prahl@oit.edu"}]
description = "Mie scattering of a plane wave by a sphere"
requires-python = ">=3.10"
readme = "README.rst"
license = "MIT"
keywords = [
"mie",
"scattering",
"rainbow",
"droplet",
"backscatter",
"sphere",
"nanoparticle",
"cloud",
"phase function",
"efficiency",
"rayleigh",
"backscattering"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = ["version"]
dependencies = [
"numpy",
"matplotlib",
"scipy",
"numba; sys_platform != 'emscripten'",
]
[project.optional-dependencies]
docs = [
"Sphinx>=8.1.3",
"nbsphinx>=0.9.7",
"ipython",
"sphinx_automodapi",
"sphinx_rtd_theme",
]
dev = [
# Testing
"pytest",
"pytest-cov",
"imageio",
"requests",
# Lint / QA
"ruff",
"yamllint",
"rstcheck[sphinx,toml]",
"pylint",
"pyroma",
"black[jupyter]",
# Release / packaging checks
"build",
"check-manifest",
# setuptools is not listed: check-manifest and pyroma both require it, and the
# backend is installed by build isolation, so an explicit pin adds nothing
"libarchive-c",
"pyyaml",
# Notebooks (local JupyterLab workflows)
"jupyterlab",
"nbconvert",
"nbformat",
]
lite = [
"jupyterlite-core>=0.7,<0.8",
"jupyterlite-pyodide-kernel>=0.7,<0.8",
]
[project.urls]
Homepage = "https://github.com/scottprahl/miepython"
Documentation = "https://miepython.readthedocs.io"
Source = "https://github.com/scottprahl/miepython"
Tracker = "https://github.com/scottprahl/miepython/issues"
Changelog = "https://github.com/scottprahl/miepython/blob/main/docs/CHANGELOG.rst"
[tool.setuptools.dynamic]
version = {attr = "miepython.__version__"}
[tool.black]
line-length = 120
target-version = ["py310", "py311", "py312", "py313", "py314"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = [
"--ignore=tests/test_all_notebooks.py",
]
[tool.pylint]
disable = [
"C0103", "C0209", "C0302", "C0413", "E0611",
"R0801", "R0902", "R0903", "R0904", "R0912",
"R0913", "R0914", "R0915", "R0917", "R1702",
"W0511"
]
max-line-length = 120
exclude-protected = ["_single_sphere_py", "_single_sphere_nb", "_S1_S2_py", "_S1_S2_nb"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["D", "E", "F", "W"]
ignore = ["D100", "D101", "D102", "D103", "D200", "D212", "E402", "F403", "F405"]
pydocstyle.convention = "google"
[tool.ruff.lint.per-file-ignores]
"docs/x_*.ipynb" = ["ALL"]
"docs/11_performance.ipynb" = ["ALL"]
[tool.coverage.run]
source = ["miepython"]
branch = true
# the example scripts live inside the package directory but are not shipped, and
# they run start to finish, so counting them only inflates the total
omit = ["*/miepython/examples/*"]
[tool.coverage.report]
show_missing = true
skip_covered = false
# The whole package is covered, so hold it there. Never lower this to make a run
# pass; add the test the new code needs instead.
fail_under = 100
exclude_also = [
"if TYPE_CHECKING:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.check-manifest]
ignore = [
"_site/**",
".gh-pages/**",
".lite_src/**",
".readthedocs.yaml",
".testignore",
".yamllint",
"jupyter_lite_config.json",
"Makefile",
"release.txt",
"docs/**",
"miepython/examples/**",
]