-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (56 loc) · 1.19 KB
/
pyproject.toml
File metadata and controls
65 lines (56 loc) · 1.19 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "herc_analysis"
version = "0.0.0"
description = "Analysis tools for Hercules hybrid energy system simulations"
requires-python = ">=3.11"
dependencies = [
"nlr-hercules",
"pandas>=2.0",
"numpy>=1.24",
"plotly>=5.0.0",
"pyarrow>=20.0.0",
"matplotlib",
"h5py",
]
[project.optional-dependencies]
docs = [
"jupyter-book==1.0.4",
"sphinx-book-theme"
]
develop = [
"pytest",
"pre-commit",
"ruff",
]
[tool.uv]
override-dependencies = ["aiohttp>=3.10"]
[tool.hatch.build.targets.wheel]
packages = ["herc_analysis"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.ruff]
line-length = 88
target-version = "py311"
[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 formatter)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]