22version = " 4.0.0"
33tag_format = " v$version"
44version_files = [
5- " pyproject.toml:version" ,
6- " commitizen/__version__.py" ,
7- " .pre-commit-config.yaml:rev:.+Commitizen" ,
5+ " pyproject.toml:version" ,
6+ " commitizen/__version__.py" ,
7+ " .pre-commit-config.yaml:rev:.+Commitizen" ,
88]
99
1010[tool .poetry ]
@@ -32,10 +32,7 @@ classifiers = [
3232 " Programming Language :: Python :: 3.13" ,
3333 " Programming Language :: Python :: Implementation :: CPython" ,
3434]
35- packages = [
36- {include = " commitizen" },
37- {include = " commitizen/py.typed" },
38- ]
35+ packages = [{ include = " commitizen" }, { include = " commitizen/py.typed" }]
3936
4037[tool .poetry .dependencies ]
4138python = " >=3.9"
@@ -51,7 +48,7 @@ argcomplete = ">=1.12.1,<3.6"
5148typing-extensions = { version = " ^4.0.1" , python = " <3.11" }
5249charset-normalizer = " >=2.1.0,<4"
5350# Use the Python 3.11 and 3.12 compatible API: https://github.com/python/importlib_metadata#compatibility
54- importlib_metadata = { version = " >=8.0.0,<9" , python = " <3.10" }
51+ importlib_metadata = { version = " >=8.0.0,<9" , python = " <3.10" }
5552
5653[tool .poetry .group .dev .dependencies ]
5754# dev tool
@@ -65,7 +62,7 @@ pytest-freezer = "^0.4.6"
6562pytest-xdist = " ^3.1.0"
6663# linter
6764ruff = " >=0.5.0,<0.9.0"
68- pre-commit = " >=2.18,<4 .0"
65+ pre-commit = " >=2.18,<5 .0"
6966mypy = " ^1.4"
7067types-PyYAML = " >=5.4.3,<7.0.0"
7168types-termcolor = " ^0.1.1"
@@ -108,33 +105,33 @@ semver = "commitizen.version_schemes:SemVer"
108105semver2 = " commitizen.version_schemes:SemVer2"
109106
110107[tool .coverage ]
111- [tool .coverage .report ]
112- show_missing = true
113- exclude_lines = [
114- # Have to re-enable the standard pragma
115- ' pragma: no cover' ,
116-
117- # Don't complain about missing debug-only code:
118- ' def __repr__' ,
119- ' if self\.debug' ,
120-
121- # Don't complain if tests don't hit defensive assertion code:
122- ' raise AssertionError' ,
123- ' raise NotImplementedError' ,
124-
125- # Don't complain if non-runnable code isn't run:
126- ' if 0:' ,
127- ' if __name__ == .__main__.:' ,
128- ' if TYPE_CHECKING:' ,
129- ]
130- omit = [
131- ' env/*' ,
132- ' venv/*' ,
133- ' .venv/*' ,
134- ' */virtualenv/*' ,
135- ' */virtualenvs/*' ,
136- ' */tests/*' ,
137- ]
108+ [tool .coverage .report ]
109+ show_missing = true
110+ exclude_lines = [
111+ # Have to re-enable the standard pragma
112+ ' pragma: no cover' ,
113+
114+ # Don't complain about missing debug-only code:
115+ ' def __repr__' ,
116+ ' if self\.debug' ,
117+
118+ # Don't complain if tests don't hit defensive assertion code:
119+ ' raise AssertionError' ,
120+ ' raise NotImplementedError' ,
121+
122+ # Don't complain if non-runnable code isn't run:
123+ ' if 0:' ,
124+ ' if __name__ == .__main__.:' ,
125+ ' if TYPE_CHECKING:' ,
126+ ]
127+ omit = [
128+ ' env/*' ,
129+ ' venv/*' ,
130+ ' .venv/*' ,
131+ ' */virtualenv/*' ,
132+ ' */virtualenvs/*' ,
133+ ' */tests/*' ,
134+ ]
138135
139136[build-system ]
140137requires = [" poetry_core>=1.0.0" ]
@@ -157,11 +154,7 @@ select = [
157154 # isort
158155 " I" ,
159156]
160- ignore = [
161- " E501" ,
162- " D1" ,
163- " D415"
164- ]
157+ ignore = [" E501" , " D1" , " D415" ]
165158
166159[tool .ruff .lint .isort ]
167160known-first-party = [" commitizen" , " tests" ]
@@ -179,7 +172,7 @@ warn_unused_ignores = true
179172warn_unused_configs = true
180173
181174[[tool .mypy .overrides ]]
182- module = " py.*" # Legacy pytest dependencies
175+ module = " py.*" # Legacy pytest dependencies
183176ignore_missing_imports = true
184177
185178[tool .codespell ]
0 commit comments