Skip to content

Commit 4d36bdf

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

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

commitizen/config/base_config.py

-14
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

-4
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)