mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 00:31:16 +00:00
Fix linting
This commit is contained in:
parent
d6e91be015
commit
e5b2adda6b
2
.github/workflows/format.yml
vendored
2
.github/workflows/format.yml
vendored
@ -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
|
||||
|
||||
@ -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 = [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user