From 6a5327caf77051fc6f04fbeea10683c2a1c1fb8f Mon Sep 17 00:00:00 2001 From: Jair Henrique Date: Sat, 12 Oct 2024 23:06:20 -0300 Subject: [PATCH] Adds support to django 5.1 --- .github/workflows/ci.yml | 1 + pyproject.toml | 49 +++++++++++++++++++--------------------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6bac5d4..13197fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,7 @@ jobs: django-version: - "4.2" # LTS - "5.0" + - "5.1" extras: - "test" diff --git a/pyproject.toml b/pyproject.toml index 67e24a8..1b64d19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,23 +34,14 @@ classifiers = [ "Framework :: Django", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", ] requires-python = ">=3.10" dependencies = ["django", "markdown", "premailer"] [project.optional-dependencies] -test = [ - "pytest", - "pytest-cov", - "pytest-django", - "model_bakery", -] -lint = [ - "black==24.8.0", - "pre-commit==4.0.0", - "ruff==0.6.9", - "djlint==1.35.2", -] +test = ["pytest", "pytest-cov", "pytest-django", "model_bakery"] +lint = ["black==24.8.0", "pre-commit==4.0.0", "ruff==0.6.9", "djlint==1.35.2"] [project.urls] Project-URL = "https://github.com/voiio/emark" @@ -80,15 +71,15 @@ src = ["emark", "tests"] [tool.ruff.lint] select = [ - "E", # pycodestyle errors - "W", # pycodestyle warnings - "F", # pyflakes - "I", # isort - "S", # flake8-bandit - "D", # pydocstyle - "UP", # pyupgrade - "B", # flake8-bugbear - "C", # flake8-comprehensions + "E", # pycodestyle errors + "W", # pycodestyle warnings + "F", # pyflakes + "I", # isort + "S", # flake8-bandit + "D", # pydocstyle + "UP", # pyupgrade + "B", # flake8-bugbear + "C", # flake8-comprehensions ] ignore = ["B904", "D1", "E501", "S101"] @@ -96,14 +87,20 @@ ignore = ["B904", "D1", "E501", "S101"] [tool.ruff.lint.isort] combine-as-imports = true split-on-trailing-comma = true -section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"] +section-order = [ + "future", + "standard-library", + "third-party", + "first-party", + "local-folder", +] force-wrap-aliases = true [tool.ruff.lint.pydocstyle] convention = "google" [tool.djlint] -profile="django" -indent=2 -max_line_length=120 -exclude=".direnv,.venv,venv" +profile = "django" +indent = 2 +max_line_length = 120 +exclude = ".direnv,.venv,venv"