-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
88 lines (72 loc) · 1.79 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "examgenerator"
description = "A tool for creating randomized exams for e2xgrader"
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
authors = [
{ name = "Tim Metzler", email = "[email protected]" },
]
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"e2xcore>=0.0.5",
"e2xgrader>=0.1.1"
]
dynamic = ["version"]
[project.urls]
Source = "https://github.com/Digiklausur/examgenerator"
Issues = "https://github.com/Digiklausur/examgenerator/issues"
[project.optional-dependencies]
dev = [
"pre-commit",
"pytest-cov",
"hatchling",
"tbump"
]
[tool.hatch.version]
path = "examgenerator/__version__.py"
[tool.tbump]
github_url = "https://github.com/Digiklausur/examgenerator/"
[tool.tbump.version]
current = "0.0.0"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
(?P<dev>-dev\d+)?
'''
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
# Files with the version present
[[tool.tbump.file]]
src = "e2xgrader/__version__.py"
[[tool.tbump.file]]
src = "docs/source/conf.py"
[[tool.tbump.file]]
src = "lerna.json"
[[tool.tbump.file]]
src = "package.json"
search = '"version": "{current_version}'
[[tool.tbump.file]]
src = "packages/*/package.json"
search = '"version": "{current_version}'
[[tool.tbump.file]]
src = "packages/*/package.json"
search = '"@e2xgrader/[\w-]+": "{current_version}'
[tool.ruff]
line-length = 100
ignore-init-module-imports = true
select = ["F", "E", "I"]