diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 57b66de..6fc8ddc 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -35,6 +35,7 @@ body: If you are not using the latest version, please try to also reproduce the bug on the latest version before opening the issue. options: + - "0.4.2" - "0.4.1" - "0.4.0" - "0.3.1" @@ -47,6 +48,7 @@ body: description: >- Please note that python versions not available below are not supported. options: + - "3.13" - "3.12" - "3.11" - "3.10" diff --git a/poetry.lock b/poetry.lock index cd0e463..5e99bb2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1228,4 +1228,4 @@ watchmedo = ["PyYAML (>=3.10)"] [metadata] lock-version = "2.0" python-versions = ">=3.10,<4" -content-hash = "af061fdbdc4c53ebb80f96084359c704ea7f9b12db805adbe13ef2757f38d787" +content-hash = "2f52e8ca7fc724ffdde29ed91c36f8516735edc55be2ab0bf8f551af4f0a803a" diff --git a/pyproject.toml b/pyproject.toml index 58db5ba..ac2261e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "django-admin-data-views" -version = "0.4.1" +version = "0.4.2" description = "Add custom data views to django admin panel." authors = [ "Matti Lamppu ", @@ -51,7 +51,8 @@ exclude = [ [tool.poetry.dependencies] python = ">=3.10,<4" Django = ">=4.2" -django-settings-holder = ">=0.1.2" +django-settings-holder = ">=0.2.0" +typing-extensions = { version = ">=4.12.1", python = "<3.11" } [tool.poetry.group.test.dependencies] pytest = "8.3.3" @@ -183,6 +184,25 @@ lint.ignore = [ "W191", # tab-indentation ] +[tool.ruff.lint.extend-per-file-ignores] +"**/*/test_*.py" = [ + "ANN", # No need to annotate tests + "E721", # No need to compare to True + "N801", # Allow whatever class names in tests + "N802", # Allow whatever function names in tests + "N815", # Allow whatever variable names in tests + "PLR0915", # Can have as many statements as needed + "PLR2004", # Magic value comparisons are allowed in tests + "S101", # Assert is fine + "S105", # Hardcoded passwords are fine in tests + "S106", # Hardcoded passwords are fine in tests + "S108", # No need to care about insecure temp file usages in tests + "S311", # Pseudo-random generators are fine here + "SLF", # Allow accessing private members in tests + "UP", # No upgrade rules + "PLR0914", # Too many local variables +] + [tool.mypy] python_version = "3.13" warn_return_any = "True"