-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
81 lines (68 loc) · 1.92 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "flake8-stash"
keywords = [
"flake8",
"flake8 plugin",
"collection of checks",
"lint dunder all",
]
authors = [{ name = "Ghazi Abbassi" }]
license = { file = "LICENSE" }
readme = "README.md"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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 :: 3.13",
]
dynamic = ["version", "description"]
requires-python = ">=3.8"
dependencies = ["flake8"]
[project.optional-dependencies]
dev = ["pre-commit"]
release = ["flit", "keyring", "tbump"]
test = ["pytest", "pre-commit"]
[project.urls]
Code = "https://github.com/ghazi-git/flake8-stash"
Issues = "https://github.com/ghazi-git/flake8-stash/issues"
Changelog = "https://github.com/ghazi-git/flake8-stash/releases"
[project.entry-points."flake8.extension"]
STA = "flake8_stash.plugin:Plugin"
[tool.flit.module]
name = "flake8_stash"
[tool.tbump]
[tool.tbump.version]
current = "0.10.0"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
'''
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
[[tool.tbump.file]]
src = "flake8_stash/__init__.py"
search = '__version__ = "{current_version}"'
[[tool.tbump.file]]
src = "flake8_stash/plugin.py"
search = 'version = "{current_version}"'
[[tool.tbump.file]]
src = "README.md"
search = 'flake8-stash=={current_version}'
[[tool.tbump.before_commit]]
name = "Update the changelog"
cmd = "python release/update_changelog.py --new-version {new_version}"
[[tool.tbump.after_push]]
name = "Publish to PyPI"
cmd = "flit publish"