-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
69 lines (61 loc) · 1.4 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
[project]
name = "adam_impact_study"
version = "0.1.0"
description = ""
authors = [
{name = "Kathleen Kiker", email = "[email protected]"},
]
dependencies = [
"matplotlib",
"adam_core",
"adam_assist",
"sorcha",
"jax",
"jaxlib",
"numpy>=1.24.4",
]
requires-python = ">=3.11"
readme = "README.md"
license = {text = "MIT"}
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project.optional-dependencies]
dev = [
"black",
"ipython",
"isort",
"mypy",
"pdm",
"pytest-benchmark",
"pytest-cov",
"pytest-doctestplus",
"pytest-mock",
"pytest",
"ruff",
]
[tool.pdm.scripts]
check = { composite = ["lint", "typecheck", "test"] }
format = { composite = ["black ./src/adam_impact_study", "isort ./src/adam_impact_study"] }
lint = { composite = [
"ruff check ./src/adam_impact_study",
"black --check ./src/adam_impact_study",
"isort --check-only ./src/adam_impact_study",
] }
fix = "ruff ./src/adam_impact_study --fix"
typecheck = "mypy --strict ./src/adam_impact_study"
test = "pytest --benchmark-disable {args}"
doctest = "pytest --doctest-plus --doctest-only"
benchmark = "pytest --benchmark-only"
coverage = "pytest --cov=adam_impact_study --cov-report=xml"
[tool.pdm]
distribution = true
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 110
target-version = "py311"
lint.ignore = []
exclude = ["build"]