-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
98 lines (83 loc) · 1.88 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "pyRVT"
version = "0.8.0"
authors = [{ name = "Albert Kottke", email = "[email protected]" }]
description = "Random vibration theory for earthquake ground motions."
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
dependencies = [
"numpy",
"numba",
"setuptools",
"scipy",
"pyexcel",
"pyexcel-io",
"pyexcel-xlsx",
]
[project.urls]
Homepage = "https://github.com/arkottke/pyrvt"
Documentation = "https://pyrvt.readthedocs.io"
[project.scripts]
pyrvt = "pyrvt.runner:main"
[tool.hatch.build.targets.sdist]
exclude = ["/*.yml", "/.*", "/.github", "/docs"]
[tool.hatch.build.targets.wheel]
packages = ["src/pyrvt"]
[tool.hatch.version]
source = "vcs"
[tool.ruff]
exclude = [
"docs"
]
# Same as Black.
line-length = 88
indent-width = 4
target-version = "py310"
extend-include = ["*.ipynb"]
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint]
select = ["E", "F", "W", "Q", "I"]
ignore = ["E203"]
[tool.hatch.envs.test]
dependencies = [
"coverage[toml]",
"pandas",
"pytest",
"pystrata",
"pytest-cov",
"pytest-runner",
# FIXME: Add as dependency of pystrata
"matplotlib",
"pykooh",
"tomli",
"pandas",
# Done
]
[tool.hatch.envs.test.scripts]
run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=tests"
run-coverage-xml = "run-coverage --cov-report xml"
run = "run-coverage --no-cov"
[[tool.hatch.envs.test.matrix]]
python = ["3.10", "3.11", "3.12"]
[tool.hatch.envs.docs]
detached = true
dependencies = [
"mkdocs",
"markdown-callouts",
"mkdocstrings[python]",
"mkdocs-bibtex",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-material",
"mkdocs-section-index",
"mkdocs-jupyter",
"black",
]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build --clean --strict"
serve = "mkdocs serve --dev-addr localhost:8000"