forked from HarrisonKramer/optiland
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (64 loc) · 1.53 KB
/
pyproject.toml
File metadata and controls
74 lines (64 loc) · 1.53 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "optiland"
version = "0.5.9"
authors = [{ name = "Kramer Harrison", email = "kdanielharrison@gmail.com" }]
description = "Open Source Optical Design in Python"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
dependencies = [
"numpy",
"scipy",
"pandas",
"pyyaml",
"matplotlib",
"vtk",
"tabulate",
"numba>=0.60.0",
"requests",
"seaborn",
"typing-extensions>=4.1.0",
]
license = { text = "MIT License" }
[project.urls]
Homepage = "https://github.com/HarrisonKramer/optiland"
[project.scripts]
optiland = "optiland_gui.run_gui:main"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["optiland", "optiland_gui"] # Auto-discovers subpackages
[tool.hatch.metadata.files]
"optiland/database" = ["*.csv", "*.yml", "**/*.yml", "*.npy"]
[tool.ruff]
line-length = 88
exclude = ["tests", "docs"]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
"PYI", # pyright
"TC", # type-checking
]
exclude = ["*.ipynb"]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[dependency-groups]
dev = [
"pytest>=8.3.5",
"codecov>=2.1.13",
"torch",
"pytest-cov>=7.0.0",
]
gui = ["PySide6", "qtconsole"]
torch = ["torch"]