commitizen 3.27.0__tar.gz → 3.29.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. {commitizen-3.27.0 → commitizen-3.29.0}/PKG-INFO +3 -3
  2. commitizen-3.29.0/commitizen/__version__.py +1 -0
  3. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/changelog_formats/__init__.py +6 -3
  4. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/changelog_formats/restructuredtext.py +1 -1
  5. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cli.py +12 -0
  6. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/commands/bump.py +29 -6
  7. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/commands/changelog.py +3 -4
  8. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/commands/check.py +5 -0
  9. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/commands/commit.py +0 -1
  10. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/commands/init.py +1 -0
  11. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/config/__init__.py +1 -1
  12. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/config/toml_config.py +1 -0
  13. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/__init__.py +5 -1
  14. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/defaults.py +1 -3
  15. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/exceptions.py +4 -0
  16. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/providers/__init__.py +5 -2
  17. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/providers/cargo_provider.py +0 -1
  18. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/providers/commitizen_provider.py +0 -1
  19. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/providers/composer_provider.py +0 -1
  20. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/providers/npm_provider.py +0 -1
  21. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/providers/pep621_provider.py +0 -1
  22. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/providers/poetry_provider.py +0 -1
  23. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/providers/scm_provider.py +2 -4
  24. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/version_schemes.py +5 -1
  25. {commitizen-3.27.0 → commitizen-3.29.0}/pyproject.toml +21 -8
  26. commitizen-3.27.0/commitizen/__version__.py +0 -1
  27. {commitizen-3.27.0 → commitizen-3.29.0}/LICENSE +0 -0
  28. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/__init__.py +0 -0
  29. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/__main__.py +0 -0
  30. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/bump.py +0 -0
  31. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/changelog.py +0 -0
  32. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/changelog_formats/asciidoc.py +0 -0
  33. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/changelog_formats/base.py +0 -0
  34. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/changelog_formats/markdown.py +0 -0
  35. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/changelog_formats/textile.py +0 -0
  36. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cmd.py +0 -0
  37. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/commands/__init__.py +0 -0
  38. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/commands/example.py +0 -0
  39. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/commands/info.py +0 -0
  40. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/commands/list_cz.py +0 -0
  41. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/commands/schema.py +0 -0
  42. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/commands/version.py +0 -0
  43. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/config/base_config.py +0 -0
  44. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/config/json_config.py +1 -1
  45. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/config/yaml_config.py +1 -1
  46. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/base.py +0 -0
  47. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/conventional_commits/__init__.py +0 -0
  48. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/conventional_commits/conventional_commits.py +0 -0
  49. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/conventional_commits/conventional_commits_info.txt +0 -0
  50. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/customize/__init__.py +0 -0
  51. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/customize/customize.py +0 -0
  52. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/customize/customize_info.txt +0 -0
  53. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/exceptions.py +0 -0
  54. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/jira/__init__.py +0 -0
  55. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/jira/jira.py +0 -0
  56. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/jira/jira_info.txt +0 -0
  57. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/cz/utils.py +2 -2
  58. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/factory.py +0 -0
  59. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/git.py +0 -0
  60. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/hooks.py +0 -0
  61. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/out.py +0 -0
  62. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/providers/base_provider.py +0 -0
  63. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/py.typed +0 -0
  64. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/templates/CHANGELOG.adoc.j2 +0 -0
  65. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/templates/CHANGELOG.md.j2 +0 -0
  66. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/templates/CHANGELOG.rst.j2 +0 -0
  67. {commitizen-3.27.0 → commitizen-3.29.0}/commitizen/templates/CHANGELOG.textile.j2 +0 -0
  68. {commitizen-3.27.0 → commitizen-3.29.0}/docs/README.md +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: commitizen
3
- Version: 3.27.0
3
+ Version: 3.29.0
4
4
  Summary: Python commitizen client tool
5
5
  Home-page: https://github.com/commitizen-tools/commitizen
6
6
  License: MIT
@@ -22,11 +22,11 @@ Classifier: Programming Language :: Python :: 3.10
22
22
  Classifier: Programming Language :: Python :: 3.11
23
23
  Classifier: Programming Language :: Python :: 3.12
24
24
  Classifier: Programming Language :: Python :: Implementation :: CPython
25
- Requires-Dist: argcomplete (>=1.12.1,<3.4)
25
+ Requires-Dist: argcomplete (>=1.12.1,<3.6)
26
26
  Requires-Dist: charset-normalizer (>=2.1.0,<4)
27
27
  Requires-Dist: colorama (>=0.4.1,<0.5.0)
28
28
  Requires-Dist: decli (>=0.6.0,<0.7.0)
29
- Requires-Dist: importlib_metadata (>=4.13,<8)
29
+ Requires-Dist: importlib_metadata (>=8.0.0,<9) ; python_version < "3.10"
30
30
  Requires-Dist: jinja2 (>=2.10.3)
31
31
  Requires-Dist: packaging (>=19)
32
32
  Requires-Dist: pyyaml (>=3.08)
@@ -0,0 +1 @@
1
+ __version__ = "3.29.0"
@@ -1,13 +1,16 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import sys
3
4
  from typing import ClassVar, Protocol
4
5
 
5
- import importlib_metadata as metadata
6
+ if sys.version_info >= (3, 10):
7
+ from importlib import metadata
8
+ else:
9
+ import importlib_metadata as metadata
6
10
 
7
11
  from commitizen.changelog import Metadata
8
- from commitizen.exceptions import ChangelogFormatUnknown
9
12
  from commitizen.config.base_config import BaseConfig
10
-
13
+ from commitizen.exceptions import ChangelogFormatUnknown
11
14
 
12
15
  CHANGELOG_FORMAT_ENTRYPOINT = "commitizen.changelog_format"
13
16
  TEMPLATE_EXTENSION = "j2"
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
  import re
4
4
  import sys
5
5
  from itertools import zip_longest
6
- from typing import IO, TYPE_CHECKING, Any, Union, Tuple
6
+ from typing import IO, TYPE_CHECKING, Any, Tuple, Union
7
7
 
8
8
  from commitizen.changelog import Metadata
9
9
 
@@ -353,6 +353,12 @@ data = {
353
353
  "help": "Add additional build-metadata to the version-number",
354
354
  "default": None,
355
355
  },
356
+ {
357
+ "name": ["--get-next"],
358
+ "action": "store_true",
359
+ "help": "Determine the next version and write to stdout",
360
+ "default": False,
361
+ },
356
362
  ],
357
363
  },
358
364
  {
@@ -466,6 +472,12 @@ data = {
466
472
  "If the message starts by one of these prefixes, "
467
473
  "the message won't be checked against the regex",
468
474
  },
475
+ {
476
+ "name": ["-l", "--message-length-limit"],
477
+ "type": int,
478
+ "default": 0,
479
+ "help": "length limit of the commit message; 0 for no limit",
480
+ },
469
481
  ],
470
482
  },
471
483
  {
@@ -6,6 +6,7 @@ from logging import getLogger
6
6
  import questionary
7
7
 
8
8
  from commitizen import bump, factory, git, hooks, out
9
+ from commitizen.changelog_formats import get_changelog_format
9
10
  from commitizen.commands.changelog import Changelog
10
11
  from commitizen.config import BaseConfig
11
12
  from commitizen.exceptions import (
@@ -13,6 +14,7 @@ from commitizen.exceptions import (
13
14
  BumpTagFailedError,
14
15
  DryRunExit,
15
16
  ExpectedExit,
17
+ GetNextExit,
16
18
  InvalidManualVersion,
17
19
  NoCommitsFoundError,
18
20
  NoneIncrementExit,
@@ -21,13 +23,12 @@ from commitizen.exceptions import (
21
23
  NotAllowed,
22
24
  NoVersionSpecifiedError,
23
25
  )
24
- from commitizen.changelog_formats import get_changelog_format
25
26
  from commitizen.providers import get_provider
26
27
  from commitizen.version_schemes import (
27
- get_version_scheme,
28
28
  Increment,
29
29
  InvalidVersion,
30
30
  Prerelease,
31
+ get_version_scheme,
31
32
  )
32
33
 
33
34
  logger = getLogger("commitizen")
@@ -159,6 +160,7 @@ class Bump:
159
160
  manual_version = self.arguments["manual_version"]
160
161
  build_metadata = self.arguments["build_metadata"]
161
162
  increment_mode: str = self.arguments["increment_mode"]
163
+ get_next: bool = self.arguments["get_next"]
162
164
 
163
165
  if manual_version:
164
166
  if increment:
@@ -190,6 +192,9 @@ class Bump:
190
192
  "--prerelease-offset cannot be combined with MANUAL_VERSION"
191
193
  )
192
194
 
195
+ if get_next:
196
+ raise NotAllowed("--get-next cannot be combined with MANUAL_VERSION")
197
+
193
198
  if major_version_zero:
194
199
  if not current_version.release[0] == 0:
195
200
  raise NotAllowed(
@@ -202,6 +207,18 @@ class Bump:
202
207
  "--local-version cannot be combined with --build-metadata"
203
208
  )
204
209
 
210
+ # If user specified changelog_to_stdout, they probably want the
211
+ # changelog to be generated as well, this is the most intuitive solution
212
+ self.changelog = self.changelog or bool(self.changelog_to_stdout)
213
+
214
+ if get_next:
215
+ if self.changelog:
216
+ raise NotAllowed(
217
+ "--changelog or --changelog-to-stdout is not allowed with --get-next"
218
+ )
219
+ # Setting dry_run to prevent any unwanted changes to the repo or files
220
+ self.dry_run = True
221
+
205
222
  current_tag_version: str = bump.normalize_tag(
206
223
  current_version,
207
224
  tag_format=tag_format,
@@ -210,10 +227,6 @@ class Bump:
210
227
 
211
228
  is_initial = self.is_initial_tag(current_tag_version, is_yes)
212
229
 
213
- # If user specified changelog_to_stdout, they probably want the
214
- # changelog to be generated as well, this is the most intuitive solution
215
- self.changelog = self.changelog or bool(self.changelog_to_stdout)
216
-
217
230
  if manual_version:
218
231
  try:
219
232
  new_version = self.scheme(manual_version)
@@ -266,6 +279,16 @@ class Bump:
266
279
  current_version, new_version, bump_commit_message
267
280
  )
268
281
 
282
+ if get_next:
283
+ if increment is None and new_tag_version == current_tag_version:
284
+ raise NoneIncrementExit(
285
+ "[NO_COMMITS_TO_BUMP]\n"
286
+ "The commits found are not eligible to be bumped"
287
+ )
288
+
289
+ out.write(str(new_version))
290
+ raise GetNextExit()
291
+
269
292
  # Report found information
270
293
  information = f"{message}\n" f"tag to create: {new_tag_version}\n"
271
294
  if increment:
@@ -7,9 +7,10 @@ from pathlib import Path
7
7
  from typing import Callable, cast
8
8
 
9
9
  from commitizen import bump, changelog, defaults, factory, git, out
10
-
10
+ from commitizen.changelog_formats import get_changelog_format
11
11
  from commitizen.config import BaseConfig
12
- from commitizen.cz.base import MessageBuilderHook, ChangelogReleaseHook
12
+ from commitizen.cz.base import ChangelogReleaseHook, MessageBuilderHook
13
+ from commitizen.cz.utils import strip_local_version
13
14
  from commitizen.exceptions import (
14
15
  DryRunExit,
15
16
  NoCommitsFoundError,
@@ -18,10 +19,8 @@ from commitizen.exceptions import (
18
19
  NotAGitProjectError,
19
20
  NotAllowed,
20
21
  )
21
- from commitizen.changelog_formats import get_changelog_format
22
22
  from commitizen.git import GitTag, smart_open
23
23
  from commitizen.version_schemes import get_version_scheme
24
- from commitizen.cz.utils import strip_local_version
25
24
 
26
25
 
27
26
  class Changelog:
@@ -31,6 +31,7 @@ class Check:
31
31
  self.allow_abort: bool = bool(
32
32
  arguments.get("allow_abort", config.settings["allow_abort"])
33
33
  )
34
+ self.max_msg_length: int = arguments.get("message_length_limit", 0)
34
35
 
35
36
  # we need to distinguish between None and [], which is a valid value
36
37
 
@@ -145,4 +146,8 @@ class Check:
145
146
 
146
147
  if any(map(commit_msg.startswith, self.allowed_prefixes)):
147
148
  return True
149
+ if self.max_msg_length:
150
+ msg_len = len(commit_msg.partition("\n")[0].strip())
151
+ if msg_len > self.max_msg_length:
152
+ return False
148
153
  return bool(re.match(pattern, commit_msg))
@@ -3,7 +3,6 @@ from __future__ import annotations
3
3
  import contextlib
4
4
  import os
5
5
 
6
-
7
6
  import questionary
8
7
 
9
8
  from commitizen import factory, git, out
@@ -6,6 +6,7 @@ from typing import Any
6
6
 
7
7
  import questionary
8
8
  import yaml
9
+
9
10
  from commitizen import cmd, factory, out
10
11
  from commitizen.__version__ import __version__
11
12
  from commitizen.config import BaseConfig, JsonConfig, TomlConfig, YAMLConfig
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
  from pathlib import Path
4
4
 
5
5
  from commitizen import defaults, git
6
- from commitizen.exceptions import ConfigFileNotFound, ConfigFileIsEmpty
6
+ from commitizen.exceptions import ConfigFileIsEmpty, ConfigFileNotFound
7
7
 
8
8
  from .base_config import BaseConfig
9
9
  from .json_config import JsonConfig
@@ -6,6 +6,7 @@ from pathlib import Path
6
6
  from tomlkit import exceptions, parse, table
7
7
 
8
8
  from commitizen.exceptions import InvalidConfigurationError
9
+
9
10
  from .base_config import BaseConfig
10
11
 
11
12
 
@@ -2,10 +2,14 @@ from __future__ import annotations
2
2
 
3
3
  import importlib
4
4
  import pkgutil
5
+ import sys
5
6
  import warnings
6
7
  from typing import Iterable
7
8
 
8
- import importlib_metadata as metadata
9
+ if sys.version_info >= (3, 10):
10
+ from importlib import metadata
11
+ else:
12
+ import importlib_metadata as metadata
9
13
 
10
14
  from commitizen.cz.base import BaseCommitizen
11
15
 
@@ -2,9 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  import pathlib
4
4
  from collections import OrderedDict
5
- from typing import Any, Iterable, MutableMapping
6
-
7
- from typing import TypedDict
5
+ from typing import Any, Iterable, MutableMapping, TypedDict
8
6
 
9
7
  # Type
10
8
  Questions = Iterable[MutableMapping[str, Any]]
@@ -67,6 +67,10 @@ class DryRunExit(ExpectedExit):
67
67
  pass
68
68
 
69
69
 
70
+ class GetNextExit(ExpectedExit):
71
+ pass
72
+
73
+
70
74
  class NoneIncrementExit(CommitizenException):
71
75
  exit_code = ExitCode.NO_INCREMENT
72
76
 
@@ -1,12 +1,15 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import sys
3
4
  from typing import cast
4
5
 
5
- import importlib_metadata as metadata
6
+ if sys.version_info >= (3, 10):
7
+ from importlib import metadata
8
+ else:
9
+ import importlib_metadata as metadata
6
10
 
7
11
  from commitizen.config.base_config import BaseConfig
8
12
  from commitizen.exceptions import VersionProviderUnknown
9
-
10
13
  from commitizen.providers.base_provider import VersionProvider
11
14
  from commitizen.providers.cargo_provider import CargoProvider
12
15
  from commitizen.providers.commitizen_provider import CommitizenProvider
@@ -2,7 +2,6 @@ from __future__ import annotations
2
2
 
3
3
  import tomlkit
4
4
 
5
-
6
5
  from commitizen.providers.base_provider import TomlProvider
7
6
 
8
7
 
@@ -1,6 +1,5 @@
1
1
  from __future__ import annotations
2
2
 
3
-
4
3
  from commitizen.providers.base_provider import VersionProvider
5
4
 
6
5
 
@@ -1,6 +1,5 @@
1
1
  from __future__ import annotations
2
2
 
3
-
4
3
  from commitizen.providers.base_provider import JsonProvider
5
4
 
6
5
 
@@ -4,7 +4,6 @@ import json
4
4
  from pathlib import Path
5
5
  from typing import Any, ClassVar
6
6
 
7
-
8
7
  from commitizen.providers.base_provider import VersionProvider
9
8
 
10
9
 
@@ -1,6 +1,5 @@
1
1
  from __future__ import annotations
2
2
 
3
-
4
3
  from commitizen.providers.base_provider import TomlProvider
5
4
 
6
5
 
@@ -2,7 +2,6 @@ from __future__ import annotations
2
2
 
3
3
  import tomlkit
4
4
 
5
-
6
5
  from commitizen.providers.base_provider import TomlProvider
7
6
 
8
7
 
@@ -3,17 +3,15 @@ from __future__ import annotations
3
3
  import re
4
4
  from typing import Callable
5
5
 
6
-
7
6
  from commitizen.git import get_tags
7
+ from commitizen.providers.base_provider import VersionProvider
8
8
  from commitizen.version_schemes import (
9
- get_version_scheme,
10
9
  InvalidVersion,
11
10
  Version,
12
11
  VersionProtocol,
12
+ get_version_scheme,
13
13
  )
14
14
 
15
- from commitizen.providers.base_provider import VersionProvider
16
-
17
15
 
18
16
  class ScmProvider(VersionProvider):
19
17
  """
@@ -15,7 +15,11 @@ from typing import (
15
15
  runtime_checkable,
16
16
  )
17
17
 
18
- import importlib_metadata as metadata
18
+ if sys.version_info >= (3, 10):
19
+ from importlib import metadata
20
+ else:
21
+ import importlib_metadata as metadata
22
+
19
23
  from packaging.version import InvalidVersion # noqa: F401: Rexpose the common exception
20
24
  from packaging.version import Version as _BaseVersion
21
25
 
@@ -1,5 +1,5 @@
1
1
  [tool.commitizen]
2
- version = "3.27.0"
2
+ version = "3.29.0"
3
3
  tag_format = "v$version"
4
4
  version_files = [
5
5
  "pyproject.toml:version",
@@ -9,7 +9,7 @@ version_files = [
9
9
 
10
10
  [tool.poetry]
11
11
  name = "commitizen"
12
- version = "3.27.0"
12
+ version = "3.29.0"
13
13
  description = "Python commitizen client tool"
14
14
  authors = ["Santiago Fraire <santiwilly@gmail.com>"]
15
15
  license = "MIT"
@@ -47,11 +47,11 @@ packaging = ">=19"
47
47
  tomlkit = ">=0.5.3,<1.0.0"
48
48
  jinja2 = ">=2.10.3"
49
49
  pyyaml = ">=3.08"
50
- argcomplete = ">=1.12.1,<3.4"
50
+ argcomplete = ">=1.12.1,<3.6"
51
51
  typing-extensions = { version = "^4.0.1", python = "<3.8" }
52
52
  charset-normalizer = ">=2.1.0,<4"
53
53
  # Use the Python 3.11 and 3.12 compatible API: https://github.com/python/importlib_metadata#compatibility
54
- importlib_metadata = { version = ">=4.13,<8"}
54
+ importlib_metadata = { version = ">=8.0.0,<9", python = "<3.10"}
55
55
 
56
56
  [tool.poetry.group.dev.dependencies]
57
57
  # dev tool
@@ -63,10 +63,8 @@ pytest-mock = "^3.10"
63
63
  pytest-regressions = "^2.4.0"
64
64
  pytest-freezer = "^0.4.6"
65
65
  pytest-xdist = "^3.1.0"
66
- # code formatter
67
- black = ">=23.11,<25.0"
68
66
  # linter
69
- ruff = ">=0.1.6,<0.5.0"
67
+ ruff = ">=0.5.0,<0.6.0"
70
68
  pre-commit = ">=2.18,<4.0"
71
69
  mypy = "^1.4"
72
70
  types-PyYAML = ">=5.4.3,<7.0.0"
@@ -149,7 +147,16 @@ addopts = "--strict-markers"
149
147
  line-length = 88
150
148
 
151
149
  [tool.ruff.lint]
152
- select = ["E", "F", "UP"]
150
+ select = [
151
+ # pycodestyle
152
+ "E",
153
+ # Pyflakes
154
+ "F",
155
+ # pyupgrade
156
+ "UP",
157
+ # isort
158
+ "I",
159
+ ]
153
160
  ignore = [
154
161
  "E501",
155
162
  "D1",
@@ -174,3 +181,9 @@ warn_unused_configs = true
174
181
  [[tool.mypy.overrides]]
175
182
  module = "py.*" # Legacy pytest dependencies
176
183
  ignore_missing_imports = true
184
+
185
+ [tool.codespell]
186
+ # Ref: https://github.com/codespell-project/codespell#using-a-config-file
187
+ skip = '.git*,*.svg,*.lock'
188
+ check-hidden = true
189
+ ignore-words-list = 'asend'
@@ -1 +0,0 @@
1
- __version__ = "3.27.0"
File without changes
@@ -2,8 +2,8 @@ from __future__ import annotations
2
2
 
3
3
  import json
4
4
  from pathlib import Path
5
- from commitizen.exceptions import InvalidConfigurationError
6
5
 
6
+ from commitizen.exceptions import InvalidConfigurationError
7
7
  from commitizen.git import smart_open
8
8
 
9
9
  from .base_config import BaseConfig
@@ -4,8 +4,8 @@ from pathlib import Path
4
4
 
5
5
  import yaml
6
6
 
7
- from commitizen.git import smart_open
8
7
  from commitizen.exceptions import InvalidConfigurationError
8
+ from commitizen.git import smart_open
9
9
 
10
10
  from .base_config import BaseConfig
11
11
 
@@ -1,9 +1,9 @@
1
- import re
2
1
  import os
2
+ import re
3
3
  import tempfile
4
4
 
5
- from commitizen.cz import exceptions
6
5
  from commitizen import git
6
+ from commitizen.cz import exceptions
7
7
 
8
8
 
9
9
  def required_validator(answer, msg=None):
File without changes