Skip to content

Commit 7d434ea

Browse files
Support for django 5.1, use pylint 3.0+, drop python 3.8 following EOL 2024-10-07
1 parent 37d6595 commit 7d434ea

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.11"]
15+
python-version: ["3.12"]
1616
toxenv: [django_not_installed, ruff, pylint, readme]
1717

1818
steps:
@@ -40,7 +40,7 @@ jobs:
4040
fail-fast: false
4141
matrix:
4242
python-version: ["3.10", "3.11", "3.12"]
43-
django-version: ["5.0", "-main"]
43+
django-version: ["5.0", "5.1", "-main"]
4444

4545
steps:
4646
- uses: actions/checkout@v4
@@ -75,7 +75,7 @@ jobs:
7575
strategy:
7676
fail-fast: false
7777
matrix:
78-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
78+
python-version: ["3.9", "3.10", "3.11", "3.12"]
7979
django-version: ["4.0", "4.1", "4.2"]
8080

8181
steps:
@@ -103,7 +103,7 @@ jobs:
103103
strategy: # TODO: use a YAML anchor - not supported in GitHub actions "yet"
104104
fail-fast: false
105105
matrix:
106-
python-version: [3.8, 3.9]
106+
python-version: [3.9]
107107
django-version: [3.2, 3.1, "3.0", "2.2"]
108108

109109
steps:

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ classifiers = [
1717
"Operating System :: Unix",
1818
"Topic :: Software Development :: Quality Assurance",
1919
"Programming Language :: Python :: 3",
20-
"Programming Language :: Python :: 3.8",
2120
"Programming Language :: Python :: 3.9",
2221
"Programming Language :: Python :: 3.10",
2322
"Programming Language :: Python :: 3.11",
@@ -32,6 +31,7 @@ classifiers = [
3231
"Framework :: Django :: 4.1",
3332
"Framework :: Django :: 4.2",
3433
"Framework :: Django :: 5.0",
34+
"Framework :: Django :: 5.1",
3535
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
3636
]
3737
keywords = [ "pylint", "django", "plugin" ]
@@ -42,20 +42,21 @@ include = [ "pylint_django/LICENSE" ]
4242
exclude = [ "**/tests/**", "**/testutils.py", "**/tests.py" ]
4343

4444
[tool.poetry.dependencies]
45-
python = ">=3.8,<4.0"
45+
python = ">=3.9,<4.0"
4646
pylint-plugin-utils = ">=0.8"
47-
pylint = ">=2.0,<4"
47+
pylint = ">=3.0,<4"
4848
Django = { version = ">=2.2", optional = true }
4949

5050
[tool.poetry.group.dev.dependencies]
5151
tox = ">=4.9"
5252
pytest = "^7.3.1"
53-
ruff = ">=0.1.1"
53+
ruff = ">=0.6.9"
5454
wheel = "^0.40"
5555
pytest-cov = "^4"
5656
django-tables2 = "^2.6"
5757
factory-boy = "^3.3"
5858
django-tastypie = "^0.14"
59+
pre-commit = ">=1"
5960

6061
[tool.poetry.extras]
6162
with_django = [ "Django" ]

tox.ini

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ envlist =
77
flake8
88
pylint
99
readme
10-
py{38,39}-django{22,30,31,32}
11-
py{38,39,310,311,312}-django{40,41,42}
12-
py{310,311,312}-django{50,-main}
10+
py{39}-django{22,30,31,32}
11+
py{39,310,311,312}-django{40,41,42}
12+
py{310,311,312}-django{50,51,-main}
1313

1414
requires =
1515
pip >=21.0.1
@@ -21,13 +21,13 @@ commands =
2121
django_not_installed: bash pylint_django/tests/test_django_not_installed.sh
2222
pylint: pylint pylint_django
2323
readme: bash -c "poetry build && twine check dist/*"
24-
py{37,38,39,310,311,312}-django{22,30,31,32,40,41,42,50}: bash scripts/test.sh --cov=pylint_django
24+
py{38,39,310,311,312}-django{22,30,31,32,40,41,42,50}: bash scripts/test.sh --cov=pylint_django
2525
clean: find . -type f -name '*.pyc' -delete
2626
clean: find . -type d -name __pycache__ -delete
2727
clean: rm -rf build/ .cache/ dist/ .eggs/ pylint_django.egg-info/ .tox/
2828
deps =
2929
ruff: ruff
30-
pylint: pylint<3
30+
pylint: pylint>3
3131
pylint: Django
3232
readme: twine
3333
readme: wheel
@@ -39,6 +39,7 @@ deps =
3939
django41: Django>=4.1,<4.2
4040
django42: Django>=4.2,<4.3
4141
django50: Django>=5.0,<5.1
42+
django51: Django>=5.1,<5.2
4243
django-main: Django
4344
django-main: git+https://github.com/pylint-dev/astroid@main
4445
django-main: git+https://github.com/pylint-dev/pylint@main
@@ -48,6 +49,6 @@ setenv =
4849
allowlist_externals =
4950
django_not_installed: bash
5051
readme: bash
51-
django{22,30,31,32,40,41,42,50,-main}: bash
52+
django{22,30,31,32,40,41,42,50,51,-main}: bash
5253
clean: find
5354
clean: rm

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy