Skip to content
Snippets Groups Projects
Verified Commit 5f627dac authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

[Reformat] Make lint clean

parent b4838187
No related branches found
No related tags found
1 merge request!100Enable PyPI build and reformat. AlekSIS/official/AlekSIS-Core#317
Pipeline #4424 passed
......@@ -210,7 +210,6 @@ class BreakManager(CurrentSiteManager):
class WeekQuerySetMixin:
def annotate_week(self, week: Union[CalendarWeek]):
"""Annotate all lessons in the QuerySet with the number of the provided calendar week."""
return self.annotate(
_week=models.Value(week.week, models.IntegerField()),
_year=models.Value(week.year, models.IntegerField()),
......
......@@ -17,11 +17,7 @@ from django.utils.functional import classproperty
from django.utils.translation import gettext_lazy as _
from cache_memoize import cache_memoize
from calendarweek.django import (
CalendarWeek,
i18n_day_abbr_choices_lazy,
i18n_day_name_choices_lazy,
)
from calendarweek.django import CalendarWeek, i18n_day_abbr_choices_lazy, i18n_day_name_choices_lazy
from colorfield.fields import ColorField
from django_global_request.middleware import get_request
......
from datetime import date
from typing import List, Tuple, Union
from typing import List, Tuple
from django.utils import timezone
......@@ -37,5 +37,4 @@ def get_weeks_for_year(year: int) -> List[CalendarWeek]:
def get_current_year() -> int:
"""Get current year."""
return timezone.now().year
......@@ -1950,7 +1950,7 @@ testing = ["pytest (>=3.5,<3.7.3 || >3.7.3)", "pytest-checkdocs (>=1.2.3)", "pyt
[metadata]
lock-version = "1.1"
python-versions = "^3.7"
content-hash = "fbd9b5a34e8697bf139045114e1ae736295514352dfa4befb00fa206d7e82cd5"
content-hash = "3ea95d61a58689b29cfd951e057fb15db09c21351ac9502acffeb9e478178468"
[metadata.files]
alabaster = [
......
......@@ -32,7 +32,7 @@ secondary = true
[tool.poetry.dependencies]
python = "^3.7"
calendarweek = "^0.4.6"
aleksis-core = "^2.0a3.dev0+20201114132749.88d92354"
aleksis-core = "^2.0a3"
[tool.poetry.dev-dependencies]
sphinx = "^3.0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment