Skip to content

Upgrades #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,12 @@ jobs:
matrix:
python: ["3.10", "3.11", "3.12"]
# build LTS version, next version, HEAD
django: ["32", "42", "50", "main"]
django: ["42", "50", "52", "main"]
exclude:
- python: "3.10"
django: "main"
- python: "3.11"
django: "32"
- python: "3.12"
django: "32"
django: "main"

env:
TOXENV: django${{ matrix.django }}-py${{ matrix.python }}
Expand Down
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ repos:
hooks:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.1.5"
rev: "v0.2.1"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

# python static type checking
- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down
8 changes: 5 additions & 3 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
line-length = 88

[lint]
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
Expand Down Expand Up @@ -34,13 +36,13 @@ select = [
"W", # pycodestype (warnings)
]

[isort]
[lint.isort]
combine-as-imports = true

[mccabe]
[lint.mccabe]
max-complexity = 8

[per-file-ignores]
[lint.per-file-ignores]
"*tests/*" = [
"D205", # 1 blank line required between summary line and description
"D400", # First line should end with a period
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Persistent Messages-like Framework for Django

Persisent, dismissable, targeted, messages framework for Django apps
Persistent, dismissible, targeted, messages framework for Django apps

## STATUS

Expand Down
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "django-persistent-messages"
version = "0.3"
version = "0.4"
description = "Wrapper around django.contrib.messages adding persistence."
license = "MIT"
authors = ["YunoJuno <code@yunojuno.com>"]
Expand All @@ -13,11 +13,9 @@ classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.2",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
Expand All @@ -29,7 +27,7 @@ packages = [{ include = "persistent_messages" }]

[tool.poetry.dependencies]
python = "^3.10"
django = "^3.2 || ^4.0 || ^5.0"
django = "^4.2 || ^5.0 || ^5.2"

[tool.poetry.group.dev.dependencies]
black = "*"
Expand Down
14 changes: 5 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,20 @@ envlist =
fmt, lint, mypy,
django-checks,
; https://docs.djangoproject.com/en/5.0/releases/
django32-py{310}
django40-py{310}
django41-py{310,311}
django42-py{310,311}
django50-py{310,311,312}
djangomain-py{311,312}
django52-py{310,311,312}
djangomain-py{312}

[testenv]
deps =
coverage
pytest
pytest-cov
pytest-django
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: https://github.com/django/django/archive/stable/5.0.x.tar.gz
django50: Django>=5.0,<5.1
django52: Django>=5.2,<5.3
djangomain: https://github.com/django/django/archive/main.tar.gz

commands =
Expand All @@ -48,7 +44,7 @@ deps =
ruff

commands =
ruff persistent_messages
ruff check persistent_messages

[testenv:mypy]
description = Python source code type hints (mypy)
Expand Down