From 96db71a1854e8d35fa7add0fad5518e24b4d1dd9 Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Thu, 16 Feb 2023 23:35:50 +0100 Subject: [PATCH] Fix pre-commit hooks --- .pre-commit-config.yaml | 2 +- didier/data/embeds/deadlines.py | 2 +- didier/utils/types/string.py | 2 +- requirements-dev.txt | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 10eabb9..ba38355 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/didier/data/embeds/deadlines.py b/didier/data/embeds/deadlines.py index fe3c988..ade4421 100644 --- a/didier/data/embeds/deadlines.py +++ b/didier/data/embeds/deadlines.py @@ -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 diff --git a/didier/utils/types/string.py b/didier/utils/types/string.py index aec639b..6f4a0cc 100644 --- a/didier/utils/types/string.py +++ b/didier/utils/types/string.py @@ -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] diff --git a/requirements-dev.txt b/requirements-dev.txt index 091b275..a9f7109 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -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