1
0
mirror of synced 2024-11-23 22:10:59 +01:00

Unpin flake8 now that it's fixed, fix a few lint errors.

This commit is contained in:
Jennifer Taylor 2024-09-18 03:01:51 +00:00
parent 253dd52b67
commit bafe844402
4 changed files with 5 additions and 4 deletions

View File

@ -167,7 +167,7 @@ class JubeatBase(CoreHandler, CardManagerHandler, PASELIHandler, Base):
return None
cache_key = f"get_scores_by_extid-{extid}"
score: Optional[List[Score]]
scores: Optional[List[Score]]
if partition == 1:
# We fetch all scores on the first partition and then divy up

View File

@ -72,7 +72,7 @@ class TrackedCoverage:
def print_coverage(self, req_start: Optional[int] = None, req_end: Optional[int] = None) -> None:
for start, offset in self.get_uncovered_chunks(req_start, req_end):
print(
f"Uncovered: {hex(start)} - {hex(offset)} ({offset-start} bytes)",
f"Uncovered: {hex(start)} - {hex(offset)} ({offset - start} bytes)",
file=sys.stderr,
)

View File

@ -1,3 +1,4 @@
setuptools
Cython
SQLAlchemy<2.0.0
alembic
@ -16,7 +17,7 @@ types-Werkzeug
types-Flask
types-freezegun
types-python-dateutil
flake8==4.0.1
flake8
typed-ast
freezegun
pyreact @ git+https://github.com/DragonMinded/react-python@main

View File

@ -1,3 +1,3 @@
#! /bin/bash
flake8 bemani/ --ignore E203,E501,E252,E704,E741,W503,W504,B006,B008,B009 | grep -v "migrations\/"
flake8 bemani/ --ignore E203,E501,E252,E704,E721,E741,W503,W504,B006,B008,B009 | grep -v "migrations\/"