diff options
author | saturneric <[email protected]> | 2024-01-17 16:14:13 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-17 16:14:13 +0000 |
commit | 37848811b6c8ca6c2a707431ec077c8098918afe (patch) | |
tree | 2ed4e5759ca6c432171963068beca61a164e98d2 /scripts | |
parent | feat: update ci files and reduce dependencies (diff) | |
download | GpgFrontend-37848811b6c8ca6c2a707431ec077c8098918afe.tar.gz GpgFrontend-37848811b6c8ca6c2a707431ec077c8098918afe.zip |
fix: improve code quality, docs and ci files
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/copyright_checking.py | 5 |
1 files changed, 2 insertions, 3 deletions
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 <[email protected]> """ 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() |