Skip to content

Commit 14a2f40

Browse files
committed
Yaml 文件扩展名修改为 '.yaml'
1 parent e65de71 commit 14a2f40

13 files changed

+5
-5
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tools/configs/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
attachments = list[Attachment](get_args(Attachment.__value__))
4040

4141
mapping_file_paths = [
42-
path_define.mappings_dir.joinpath('2700-27BF Dingbats.yml'),
43-
path_define.mappings_dir.joinpath('2E80-2EFF CJK Radicals Supplement.yml'),
44-
path_define.mappings_dir.joinpath('2F00-2FDF Kangxi Radicals.yml'),
42+
path_define.mappings_dir.joinpath('2700-27BF Dingbats.yaml'),
43+
path_define.mappings_dir.joinpath('2E80-2EFF CJK Radicals Supplement.yaml'),
44+
path_define.mappings_dir.joinpath('2F00-2FDF Kangxi Radicals.yaml'),
4545
]

tools/configs/font.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def line_height(self) -> int:
2323
class FontConfig:
2424
@staticmethod
2525
def load(font_size: FontSize) -> 'FontConfig':
26-
file_path = path_define.glyphs_dir.joinpath(str(font_size), 'config.yml')
26+
file_path = path_define.glyphs_dir.joinpath(str(font_size), 'config.yaml')
2727
config_data = yaml.safe_load(file_path.read_bytes())
2828

2929
layout_params = {}

tools/format_mappings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
def main():
66
for file_path in path_define.mappings_dir.iterdir():
7-
if file_path.suffix != '.yml':
7+
if file_path.suffix != '.yaml':
88
continue
99
format_service.format_mapping(file_path)
1010

0 commit comments

Comments
 (0)