mirror of https://github.com/stijndcl/didier
Fix pre-commit hooks
parent
ce7f2eafd8
commit
96db71a185
|
@ -16,7 +16,7 @@ repos:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
|
||||||
- repo: https://github.com/pycqa/isort
|
- repo: https://github.com/pycqa/isort
|
||||||
rev: 5.10.1
|
rev: 5.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ class Deadlines(EmbedBaseModel):
|
||||||
embed.set_image(url="https://c.tenor.com/RUzJ3lDGQUsAAAAC/iron-man-you-can-rest-now.gif")
|
embed.set_image(url="https://c.tenor.com/RUzJ3lDGQUsAAAAC/iron-man-you-can-rest-now.gif")
|
||||||
return embed
|
return embed
|
||||||
|
|
||||||
for i in range(1, 6):
|
for i in range(1, 7):
|
||||||
if i not in deadlines_grouped:
|
if i not in deadlines_grouped:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
@ -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
|
def get_edu_year_name(year: int) -> str: # pragma: no cover
|
||||||
"""Get the string representation of a university year"""
|
"""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]
|
return years[year]
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
black==22.3.0
|
black==22.3.0
|
||||||
coverage[toml]==6.4.1
|
coverage[toml]==6.4.1
|
||||||
freezegun==1.2.1
|
freezegun==1.2.1
|
||||||
|
isort==5.12.0
|
||||||
mypy==0.961
|
mypy==0.961
|
||||||
pre-commit==2.20.0
|
pre-commit==2.20.0
|
||||||
pytest==7.1.2
|
pytest==7.1.2
|
||||||
|
|
Loading…
Reference in New Issue