-
Notifications
You must be signed in to change notification settings - Fork 22
/
pyproject.toml
95 lines (75 loc) · 1.95 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "pyGMM"
dynamic = ["version"]
authors = [{ name = "Albert Kottke", email = "albert.kottke@gmail.com" }]
description="Ground motion models implemented in Python."
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
dependencies = [
"matplotlib",
"numpy",
"scipy",
]
[project.urls]
Homepage = "https://github.com/arkottke/pygmm"
Documentation = "https://pygmm.readthedocs.io"
[tool.hatch.build.targets.sdist]
exclude = ["/*.yml", "/.*", "/.github", "/docs"]
[tool.hatch.build.targets.wheel]
packages = ["src/pygmm"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.envs.test]
dependencies = [
"coverage[toml]",
"pytest",
"pytest-cov",
"pytest-runner",
"pytest-flake8",
]
[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.8", "3.10", "3.11"]
[tool.hatch.envs.style]
detached = true
dependencies = ["ruff"]
[tool.hatch.envs.style.scripts]
check = ["ruff check --diff"]
fmt = ["ruff check --fix", "check"]
[tool.hatch.envs.docs]
dependencies = [
"jinja2",
"sphinx",
"sphinx_rtd_theme",
"sphinxcontrib-bibtex",
]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build --clean --strict"
serve = "mkdocs serve --dev-addr localhost:8000"
[tool.pydocstyle]
inherit = false
convention = "numpy"
match = "(?!test_).*\\.py"
[tool.ruff]
line-length = 100
indent-width = 4
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.ruff.lint]
select = ["I"]
ignore = []
[tool.setuptools_scm]