Fix pre-commit hooks

pull/166/head
Stijn De Clercq 2023-02-16 23:35:50 +01:00
parent ce7f2eafd8
commit 96db71a185
4 changed files with 4 additions and 3 deletions

View File

@ -16,7 +16,7 @@ repos:
- id: trailing-whitespace
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort

View File

@ -51,7 +51,7 @@ class Deadlines(EmbedBaseModel):
embed.set_image(url="https://c.tenor.com/RUzJ3lDGQUsAAAAC/iron-man-you-can-rest-now.gif")
return embed
for i in range(1, 6):
for i in range(1, 7):
if i not in deadlines_grouped:
continue

View File

@ -94,6 +94,6 @@ def re_replace_with_list(pattern: str, string: str, replacements: list[str]) ->
def get_edu_year_name(year: int) -> str: # pragma: no cover
"""Get the string representation of a university year"""
years = ["1st Bachelor", "2nd Bachelor", "3rd Bachelor", "1st Master", "2nd Master"]
years = ["1st Bachelor", "2nd Bachelor", "3rd Bachelor", "1st Master", "2nd Master", "Elective Courses (Master)"]
return years[year]

View File

@ -1,6 +1,7 @@
black==22.3.0
coverage[toml]==6.4.1
freezegun==1.2.1
isort==5.12.0
mypy==0.961
pre-commit==2.20.0
pytest==7.1.2