-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (116 loc) · 3.28 KB
/
pyproject.toml
File metadata and controls
126 lines (116 loc) · 3.28 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
[build-system]
#requires = ["setuptools>=61.0", "pybind11>=2.10"]
#build-backend = "setuptools.build_meta"
requires = ["pybind11", "scikit-build-core>=0.11"]
build-backend = "scikit_build_core.build"
[tool.setuptools]
packages = [
"temet"
]
[tool.setuptools.package-data]
temet = ["temet/plot/mpl.style", "temet/util/*.cpp", "temet/tables/fonts/*.ttf"]
[project]
name = "temet"
version = "0.9.2"
authors = [
{ name="Dylan Nelson", email="dnelson@uni-heidelberg.de" },
]
description = "temet simulation analysis framework."
license = "MIT"
readme = "README.md"
requires-python = ">3.11.0"
dependencies = [
"astropy",
"cmocean",
#"fsps",
"h5py",
"healpy",
"matplotlib",
"numba",
"numpy",
#"requests",
#"requests-oathlib",
"scipy",
"pybind11",
"illustris_python",
]
keywords = ["astronomy", "simulation", "cosmology", "astrophysics"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
[project.optional-dependencies] #[dependency-groups]
test = [
"pytest",
"pytest-cov",
"pytest-benchmark",
]
dev = [
"buildbot",
"pyslurm",
"torch",
"torchvision",
"tensorboard",
"sbi",
"reproject",
"astro-sedpy",
"astro-prospector",
"scikit-image",
"corner",
"emcee",
"healpy",
"psutil",
"pygrackle",
]
docs = [
"sphinx",
"breathe",
"exhale",
]
[project.urls]
"Homepage" = "https://www.github.com/dnelson/temet/"
"Bug Tracker" = "https://www.github.com/dnelson/temet/issues"
"Documentation" = "https://temet.tng-project.org/"
[tool.pytest]
markers = ["requires_data: requires access to (original) data files.", "slow: test is long-running."]
[tool.ruff]
#target-version = "py311"
line-length = 120
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"D", # docstrings
]
lint.ignore = [
"UP031", # Use format specifiers instead of percent format
"B905", # `zip()` without an explicit `strict=` parameter
"D200", # One-line docstring should fit on one line
"D210", # No whitespaces allowed surrounding docstring text
"D212", # Multi-line docstring summary should start at the first line
"E402", # Module level import not at top of file (for auxCat additions)
"E741", # Ambiguous variable name
]
format.skip-magic-trailing-comma = true
[tool.ruff.lint.isort]
lines-after-imports = 2
split-on-trailing-comma = false
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D103"] # Missing docstring in function
"__init__.py" = ["F401"] # imported but unused
"temet/load/*_fields*.py" = ["D205","D209"] # allow simple multi-line docstrings for field descriptions
"temet/plot/quantities.py" = ["E501"] # Line too long (can be removed after quantDescriptions merged with docstrings)