-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
113 lines (100 loc) · 2.49 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[build-system]
requires = ["hatchling>=1.11.1", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "snakedoc"
description = 'A Sphinx extension for Snakemake'
readme = "README.rst"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [
{ name = "Simon Mutch", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"snakemake>=7.6.2",
"Sphinx>=5,<8",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://github.com/smutch/snakedoc#readme"
Issues = "https://github.com/smutch/snakedoc/issues"
Source = "https://github.com/smutch/snakedoc"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "snakedoc/_version.py"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/docs",
]
[tool.hatch.build.targets.wheel]
[tool.hatch.envs.default]
dependencies = [
"pytest>=7.1.2",
"pytest-cov>=3.0.0",
"pytest-regressions>=2.3.1",
"beautifulsoup4>=4.11.1",
"pre-commit>=2.19.0",
"sphinx-immaterial>=0.8.0",
"ipdb>=0.13.9",
"myst-parser>=0.18.1"
]
env_vars.PYTHONBREAKPOINT = "ipdb.set_trace"
scripts.cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=snakedoc"
scripts.no-cov = "cov --no-cov"
scripts.regen-expected = "pytest --force-regen"
scripts.docs = "sphinx-build docs/source docs/build/html"
[[tool.hatch.envs.test.matrix]]
python = ["38", "39", "310", "311", "312"]
[tool.hatch.envs.lint]
detached = true
dependencies = [
"isort>=5.10.1",
"black>=22.3.0",
]
scripts.style = [
"isort --check-only --diff {args:.}",
"black --check --diff {args:.}",
]
scripts.fmt = [
"isort {args:.}",
"black {args:.}",
"style"
]
[tool.coverage]
run.branch = true
run.parallel = true
run.omit = [
"snakedoc/__about__.py",
]
report.exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.hatch.envs.codecov]
extra-dependencies = [
"codecov"
]
scripts.report = [
"pytest --cov-config=pyproject.toml --cov=snakedoc",
"codecov"
]
[tool.black]
line-length = 120
skip_string_normalization = true
[tool.isort]
profile = "black"
skip = [".hatch-data"] # this is where we put the hatch data directory in the CI