-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (52 loc) · 1.61 KB
/
Copy pathpyproject.toml
File metadata and controls
59 lines (52 loc) · 1.61 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
58
59
[project]
name = "ephios-testplugin"
dynamic = ["version"]
description = "A plugin to test and develop ephios"
authors = [
{ name = "Felix Rindt", email = "felix@ephios.de" }
]
license = "MIT"
requires-python = ">=3.11,<4"
readme = "README.md"
dependencies = [
# do not include ephios to avoid desync of locked versions, but make sure to include it in the test environment
]
[dependency-groups]
dev = [
"pytest-django>=4.5.2,<5",
"djhtml>=3.0.6,<4",
"prek>=0.3.1",
"ruff>=0.15.0",
"pytest-env>=1.3.2",
]
[project.entry-points."ephios.plugins"]
ephios-testplugin = "ephios_testplugin.apps.PluginApp"
# build and versioning
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[tool.hatch.build.hooks.django-locales]
dependencies = ["hatch-django-locales>=0.1.5", "django"]
search-directories = ["src"]
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.uv-dynamic-versioning]
fallback-version = "0.0.0" # used if no VCS info is available, e.g. dependabot builds
[tool.uv]
cache-keys = [{ file = "pyproject.toml" }, { git = { commit = true, tags = true } }]
# Testing, format and linting
[tool.ruff]
line-length = 100
[tool.ruff.format]
preview = true
[tool.ruff.lint]
preview = true
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.settings"
pythonpath = [
"src", # to find the plugin source
"../ephios", # to find the ephios django project and ephios "tests.settings"/conftest fixtures
]
testpaths = ["plugintests"] # need a non-standard name to avoid conflicts with ephios' own tests dir
[tool.pytest_env]
ENV_PATH = "../ephios/.env"