-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
69 lines (56 loc) · 1.42 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-fo"
dynamic = ["version"]
description = "Wrapper for Bill Gray's fo, the programmatic version of find_orb"
authors = [
{name = "Alec Koumjian", email = "[email protected]"},
]
dependencies = [
"adam-core>=0.3.6",
]
requires-python = "<3.13,>=3.11"
readme = "README.md"
license = {text = "GPL-3.0"}
[project.scripts]
build-fo = "adam_fo.build:main"
[project.optional-dependencies]
test = [
"black>=24.10.0",
"ruff>=0.9.2",
"isort>=5.13.2",
"mypy>=1.14.1",
"pytest>=8.3.4",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.build]
includes = ["src/adam_fo/", "src/adam_fo/build_fo.sh"]
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 110
target-version = "py311"
lint.ignore = []
exclude = ["build"]
[tool.pdm.version]
source = "scm"
write_to = "adam_fo/_version.py"
write_template = "__version__ = '{}'"
[tool.pdm.scripts]
check = { composite = ["lint", "typecheck", "test"] }
format = { composite = ["black ./src/adam_fo", "isort ./src/adam_fo"] }
lint = { composite = [
"ruff check ./src/adam_fo",
"black --check ./src/adam_fo",
"isort --check-only ./src/adam_fo",
] }
fix = "ruff check ./src/adam_fo --fix"
typecheck = "mypy --strict ./src/adam_fo"
test = "pytest {args}"
doctest = "pytest --doctest-plus --doctest-only"
coverage = "pytest --cov=adam_fo --cov-report=xml {args}"