Fix linting

This commit is contained in:
tntexplosivesltd 2023-11-22 23:23:30 +13:00
parent d6e91be015
commit e5b2adda6b
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ jobs:
shell: bash
run: |
pip install -r tools/reccmp/requirements.txt
pylint tools
pylint tools --ignore=build,tests
black --check tools
- name: Run clang-format

View File

@ -16,7 +16,7 @@ def check_file(filename: str, verbose: bool = False) -> bool:
"""Open and read the given file, then check whether the code blocks
are in order. If verbose, print each block."""
with open(filename, "r") as f:
with open(filename, "r", encoding="utf-8") as f:
code_blocks = find_code_blocks(f)
bad_comments = [