forked from illustristng/illustris_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (129 loc) · 3.33 KB
/
Copy pathpyproject.toml
File metadata and controls
142 lines (129 loc) · 3.33 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
[project]
name = "illustris"
version = "0.1.1"
description = "Python tools for accessing and analyzing Illustris simulation data"
readme = "README.md"
license = "BSD-2-Clause"
authors = [
{ name = "Björn Bethge", email = "helloworld@synapticore.io" }
]
maintainers = [
{ name = "Björn Bethge", email = "helloworld@synapticore.io" }
]
requires-python = ">=3.11"
dependencies = [
"h5py>=3.14.0",
"numpy>=2.2.6",
"six>=1.17.0",
"httpx>=0.28.1",
"python-dotenv>=1.0.0",
"requests>=2.33.0",
]
keywords = ["astronomy", "simulation", "illustris", "cosmology", "astrophysics"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
[project.urls]
Homepage = "https://www.illustris-project.org/"
Documentation = "https://synapticore-io.github.io/illustris"
Repository = "https://github.com/synapticore-io/illustris"
Issues = "https://github.com/synapticore-io/illustris/issues"
Changelog = "https://github.com/synapticore-io/illustris/releases"
[project.scripts]
illustris = "illustris.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/illustris"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"/docs",
"README.md",
"LICENSE.md",
]
[tool.uv]
link-mode = "copy"
[dependency-groups]
dev = [
"pytest>=8.0.0",
"pytest-cov>=6.0.0",
"sphinx>=8.2.3",
"sphinx-rtd-theme>=3.0.0",
"myst-parser>=4.0.0",
"linkify-it-py>=2.0.0",
"ruff>=0.8.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--cov=illustris",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-report=xml",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"requires_data: marks tests that require downloaded simulation data",
]
[tool.coverage.run]
source = ["src/illustris"]
branch = true
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
]
[tool.coverage.report]
show_missing = true
skip_covered = false
precision = 2
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.ruff]
target-version = "py311"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by ruff format
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**/*" = ["B011"]