-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (46 loc) · 1.58 KB
/
Copy pathpyproject.toml
File metadata and controls
57 lines (46 loc) · 1.58 KB
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
[project]
name = "gw-plugin-template"
dynamic = ["version"]
description = "Template for a Groundworkers plugin."
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"groundworkers[tui]>=0.5,<1",
"oa-configurator>=1.2.1,<2",
"pydantic>=2,<3",
]
[project.optional-dependencies]
dev = [
"pytest>=9,<10",
"ruff>=0.4",
"ty>=0.0.59",
]
# Groundworkers discovers the plugin object through this group. The left-hand
# name is cosmetic; the object it points at must already be constructed.
[project.entry-points."groundworkers.plugins"]
gw_plugin_template = "gw_plugin_template.plugin:plugin"
# oa-configurator discovers the config class through its own group, so
# `omop-config` can render and validate this plugin's settings.
[project.entry-points."omop.config"]
gw_plugin_template = "gw_plugin_template.config:GwPluginTemplateConfig"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
raw-options = { tag_regex = '^v?(?P<version>[0-9]+\.[0-9]+\.[0-9]+)$' }
[tool.hatch.build.targets.wheel]
packages = ["src/gw_plugin_template"]
[tool.uv]
cache-keys = [{ file = "pyproject.toml" }, { git = { commit = true, tags = true } }]
constraint-dependencies = ["setuptools>=83.0.0"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
src = ["src", "tests"]
[tool.ruff.lint]
# Pinned explicitly: ruff's implicit default rule set widens between releases,
# which would otherwise break CI on a ruff upgrade rather than on a code change.
select = ["E4", "E7", "E9", "F", "I", "UP", "RUF"]
[tool.ty.src]
include = ["src"]