Skip to content

Commit

Permalink
Adds support to django 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jairhenrique committed Oct 14, 2024
1 parent cb9ebc8 commit 6a5327c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
django-version:
- "4.2" # LTS
- "5.0"
- "5.1"
extras:
- "test"

Expand Down
49 changes: 23 additions & 26 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -80,30 +71,36 @@ 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"]

[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"

0 comments on commit 6a5327c

Please sign in to comment.