From 37848811b6c8ca6c2a707431ec077c8098918afe Mon Sep 17 00:00:00 2001 From: saturneric Date: Thu, 18 Jan 2024 00:14:13 +0800 Subject: fix: improve code quality, docs and ci files --- scripts/copyright_checking.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/copyright_checking.py b/scripts/copyright_checking.py index 06e19742..82099b22 100644 --- a/scripts/copyright_checking.py +++ b/scripts/copyright_checking.py @@ -57,11 +57,10 @@ copyright_text_script = """# Copyright (C) 2021 Saturneric """ def check_copright_by_path(path, copyright_text, suffix): - for root, dirs, files in os.walk(path): + for root, _, files in os.walk(path): for file in files: - if file.endswith(suffix): + if file.endswith(suffix): file_path = os.path.join(root, file) - with open(file_path, 'r', encoding='utf-8') as f: content = f.read() -- cgit v1.2.3