Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5b73ad4

Browse files
committed
refactor(config): drop "files" configure support. Please use "version_files" instead
BREAKING CHANGE: #82
1 parent c001f3d commit 5b73ad4

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

‎commitizen/config/base_config.py‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import warnings
21
from pathlib import Path
32
from typing import Any, Dict, Optional, Union
43

@@ -34,16 +33,3 @@ def add_path(self, path: Union[str, Path]):
3433

3534
def _parse_setting(self, data: str) -> dict:
3635
raise NotImplementedError()
37-
38-
# TODO: remove "files" supported in 2.0
39-
@classmethod
40-
def _show_files_column_deprecated_warning(cls):
41-
warnings.simplefilter("always", DeprecationWarning)
42-
warnings.warn(
43-
(
44-
'"files" is renamed as "version_files" '
45-
"and will be deprecated in next major version\n"
46-
'Please repalce "files" with "version_files"'
47-
),
48-
category=DeprecationWarning,
49-
)

‎commitizen/config/toml_config.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,3 @@ def _parse_setting(self, data: str):
4444
self.settings.update(doc["tool"]["commitizen"])
4545
except exceptions.NonExistentKey:
4646
self.is_empty_config = True
47-
48-
if "files" in self.settings:
49-
self.settings["version_files"] = self.settings["files"]
50-
TomlConfig._show_files_column_deprecated_warning

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /