1
1
[build-system ]
2
2
3
3
requires = [
4
- " setuptools >= 40.9.0" ,
5
- " wheel" ,
4
+ " setuptools >= 40.9.0" ,
5
+ " wheel" ,
6
6
]
7
7
build-backend = " setuptools.build_meta"
8
8
9
+ [project ]
10
+ name = " bump-my-version"
11
+ description = " Version bump your Python project"
12
+ authors = [
13
+ {
name =
" Corey Oordt" ,
email =
" [email protected] " }
14
+ ]
15
+ classifiers = [
16
+ " Development Status :: 5 - Production/Stable" ,
17
+ " Environment :: Console" ,
18
+ " Intended Audience :: Developers" ,
19
+ " License :: OSI Approved :: MIT License" ,
20
+ " Operating System :: OS Independent" ,
21
+ " Programming Language :: Python" ,
22
+ " Programming Language :: Python :: 3 :: Only" ,
23
+ " Programming Language :: Python :: 3.7" ,
24
+ " Programming Language :: Python :: 3.8" ,
25
+ " Programming Language :: Python :: 3.9" ,
26
+ " Programming Language :: Python :: 3.10" ,
27
+ " Programming Language :: Python :: 3.11" ,
28
+ " Programming Language :: Python :: 3.12" ,
29
+ " Programming Language :: Python :: Implementation :: PyPy" ,
30
+ " Topic :: Software Development :: Build Tools" ,
31
+ " Topic :: Software Development :: Version Control" ,
32
+ " Topic :: System :: Software Distribution" ,
33
+ ]
34
+ readme = " README.md"
35
+ requires-python = " >=3.7"
36
+ license = { file = " LICENSE" }
37
+ keywords = [" bumpversion" , " version" , " release" ]
38
+ dynamic = [" version" ]
39
+
40
+ [project .urls ]
41
+ homepage = " https://github.com/callowayproject/bump-my-version"
42
+ repository = " https://github.com/callowayproject/bump-my-version.git"
43
+ documentation = " https://callowayproject.github.io/bump-my-version/"
44
+
45
+ [tool .setuptools .dynamic ]
46
+ version = {attr = " bumpversion.__version__" }
47
+
9
48
[tool .coverage .run ]
10
49
branch = true
11
50
omit = [" **/test_*.py" , " **/__main__.py" , " **/aliases.py" ]
@@ -73,7 +112,7 @@ line-length = 119
73
112
[tool .ruff ]
74
113
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
75
114
# "UP" "TRY" "PLR"
76
- select = [" E" , " W" , " F" , " I" , " N" , " B" , " BLE" , " C" , " D" , " E" , " F" , " I" , " N" , " S" , " T" , " W" , " RUF" , " NPY" , " PD" , " PGH" , " ANN" , " C90" , " PLC" , " PLE" , " PLW" , " TCH" ]
115
+ select = [" E" , " W" , " F" , " I" , " N" , " B" , " BLE" , " C" , " D" , " E" , " F" , " I" , " N" , " S" , " T" , " W" , " RUF" , " NPY" , " PD" , " PGH" , " ANN" , " C90" , " PLC" , " PLE" , " PLW" , " TCH" ]
77
116
ignore = [
78
117
" ANN002" , " ANN003" , " ANN101" , " ANN102" , " ANN204" , " ANN401" ,
79
118
" S101" , " S104" ,
@@ -82,7 +121,7 @@ ignore = [
82
121
]
83
122
84
123
# Allow autofix for all enabled rules (when `--fix`) is provided.
85
- fixable = [" E" , " W" , " F" , " I" , " N" , " B" , " BLE" , " C" , " D" , " E" , " F" , " I" , " N" , " S" , " T" , " W" , " RUF" , " NPY" , " PD" , " PGH" , " ANN" , " C90" , " PL" , " PLC" , " PLE" , " PLW" , " TCH" ]
124
+ fixable = [" E" , " W" , " F" , " I" , " N" , " B" , " BLE" , " C" , " D" , " E" , " F" , " I" , " N" , " S" , " T" , " W" , " RUF" , " NPY" , " PD" , " PGH" , " ANN" , " C90" , " PL" , " PLC" , " PLE" , " PLW" , " TCH" ]
86
125
unfixable = []
87
126
88
127
# Exclude a variety of commonly ignored directories.
@@ -118,7 +157,7 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
118
157
typing-modules = [" typing" , " types" , " typing_extensions" , " mypy" , " mypy_extensions" ]
119
158
120
159
[tool .ruff .per-file-ignores ]
121
- "tests/*" = [" S101" , " PLR0913" , " PLR0915" , " PGH003" , " ANN001" , " ANN202" , " ANN201" , " PLR0912" , " TRY301" , " PLW0603" , " PLR2004" , " ANN101" , " S106" , " TRY201" , " ANN003" , " ANN002" , " S105" , " TRY003" ]
160
+ "tests/*" = [" S101" , " PLR0913" , " PLR0915" , " PGH003" , " ANN001" , " ANN202" , " ANN201" , " PLR0912" , " TRY301" , " PLW0603" , " PLR2004" , " ANN101" , " S106" , " TRY201" , " ANN003" , " ANN002" , " S105" , " TRY003" ]
122
161
123
162
[tool .ruff .mccabe ]
124
163
# Unlike Flake8, default to a complexity level of 10.
@@ -138,7 +177,7 @@ tag = true
138
177
tag_name = " {new_version}"
139
178
allow_dirty = true
140
179
parse = " (?P<major>\\ d+)\\ .(?P<minor>\\ d+)\\ .(?P<patch>\\ d+)(\\ .dev(?P<dev>\\ d+))?"
141
- serialize =[
180
+ serialize = [
142
181
" {major}.{minor}.{patch}.dev{dev}" ,
143
182
" {major}.{minor}.{patch}"
144
183
]
0 commit comments