Skip to content
Snippets Groups Projects
Commit 9b99c674 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch 'check/update-pyproject-toml' into 'master'

Update pyproject.toml

See merge request !103
parents 1c9efc75 6613f086
No related branches found
No related tags found
1 merge request!103Update pyproject.toml
Pipeline #194520 failed
Pipeline: AlekSIS

#194535

    ...@@ -14,13 +14,11 @@ def get_current_events(calendar: Calendar, limit: int = 5) -> list: ...@@ -14,13 +14,11 @@ def get_current_events(calendar: Calendar, limit: int = 5) -> list:
    :param limit: Count of events :param limit: Count of events
    :return: List of upcoming events :return: List of upcoming events
    """ """
    i: int = 0
    events: list = [] events: list = []
    for event in calendar.timeline.start_after(timezone.now()): for i, event in enumerate(calendar.timeline.start_after(timezone.now())):
    # Check for limit # Check for limit
    if i >= limit: if i >= limit:
    break break
    i += 1
    if event.all_day: if event.all_day:
    # The last day in all day events is excluded # The last day in all day events is excluded
    ......
    ...@@ -16,7 +16,7 @@ include = [ ...@@ -16,7 +16,7 @@ include = [
    description = "AlekSIS (School Information System) — App Dashboard Feeds (Include feeds from external resources as widgets on dashboard)" description = "AlekSIS (School Information System) — App Dashboard Feeds (Include feeds from external resources as widgets on dashboard)"
    authors = ["Julian Leucker <leuckerj@gmail.com>", "Dominik George <dominik.george@teckids.org>"] authors = ["Julian Leucker <leuckerj@gmail.com>", "Dominik George <dominik.george@teckids.org>"]
    maintainers = ["Jonathan Weth <dev@jonathanweth.de>", "Dominik George <dominik.george@teckids.org>"] maintainers = ["Jonathan Weth <jonathan.weth@teckids.org>", "Dominik George <dominik.george@teckids.org>"]
    license = "EUPL-1.2-or-later" license = "EUPL-1.2-or-later"
    homepage = "https://aleksis.org" homepage = "https://aleksis.org"
    repository = "https://edugit.org/AlekSIS/official/AlekSIS-App-DashboardFeeds" repository = "https://edugit.org/AlekSIS/official/AlekSIS-App-DashboardFeeds"
    ...@@ -55,18 +55,16 @@ dashboardfeeds = "aleksis.apps.dashboardfeeds.apps:DefaultConfig" ...@@ -55,18 +55,16 @@ dashboardfeeds = "aleksis.apps.dashboardfeeds.apps:DefaultConfig"
    django-stubs = "^4.2" django-stubs = "^4.2"
    safety = "^2.3.5" safety = "^2.3.5"
    ruff = "^0.1.5" ruff = "^0.8.2"
    curlylint = "^0.13.0"
    [tool.poetry.group.test.dependencies] [tool.poetry.group.test.dependencies]
    pytest = "^7.2" pytest = "^8.3"
    pytest-django = "^4.1" pytest-django = "^4.9"
    pytest-django-testing-postgresql = "^0.2" pytest-django-testing-postgresql = "^0.2"
    pytest-cov = "^4.0.0" pytest-cov = "^6.0.0"
    pytest-sugar = "^0.9.2" pytest-sugar = "^1.0.0"
    selenium = "<4.10.0" selenium = "^4.27.0"
    freezegun = "^1.1.0" freezegun = "^1.5.0"
    [tool.poetry.group.docs] [tool.poetry.group.docs]
    optional = true optional = true
    ...@@ -77,20 +75,20 @@ sphinxcontrib-django = "^2.3.0" ...@@ -77,20 +75,20 @@ sphinxcontrib-django = "^2.3.0"
    sphinxcontrib-svg2pdfconverter = "^1.1.1" sphinxcontrib-svg2pdfconverter = "^1.1.1"
    sphinx-autodoc-typehints = "^1.7" sphinx-autodoc-typehints = "^1.7"
    sphinx_material = "^0.0.35" sphinx_material = "^0.0.35"
    [tool.ruff] [tool.ruff]
    exclude = ["migrations", "tests"] exclude = ["migrations"]
    line-length = 100 line-length = 100
    [tool.ruff.lint] [tool.ruff.lint]
    select = ["E", "F", "UP", "B", "SIM", "I", "DJ", "A", "S"] select = ["E", "F", "UP", "B", "SIM", "I", "DJ", "A", "S"]
    ignore = ["UP034", "UP015", "B028"] ignore = ["UP034", "UP015", "B028"]
    [tool.ruff.lint.extend-per-file-ignores]
    [tool.ruff.isort] "**/*/tests/**/*.py" = ["S101", "ARG", "FBT", "PLR2004", "S311", "S105"]
    [tool.ruff.lint.isort]
    known-first-party = ["aleksis"] known-first-party = ["aleksis"]
    section-order = ["future", "standard-library", "django", "third-party", "first-party", "local-folder"] section-order = ["future", "standard-library", "django", "third-party", "first-party", "local-folder"]
    [tool.ruff.isort.sections] [tool.ruff.lint.isort.sections]
    django = ["django"] django = ["django"]
    [build-system] [build-system]
    requires = ["poetry-core>=1.0.0"] requires = ["poetry-core>=1.0.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