Skip to content

Commit cdacaf3

Browse files
Support for python 3.12, 3.13, django 5.1, pylint 3.0+, remove python 3.7, 3.8
1 parent 37d6595 commit cdacaf3

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

.github/workflows/build.yml

+5-5
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:
@@ -39,8 +39,8 @@ jobs:
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
python-version: ["3.10", "3.11", "3.12"]
43-
django-version: ["5.0", "-main"]
42+
python-version: ["3.10", "3.11", "3.12", "3.13"]
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", "3.13"]
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

+6-4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ 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",
2423
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
2525
"Framework :: Django :: 2.2",
2626
"Framework :: Django :: 3",
2727
"Framework :: Django :: 3.0",
@@ -32,6 +32,7 @@ classifiers = [
3232
"Framework :: Django :: 4.1",
3333
"Framework :: Django :: 4.2",
3434
"Framework :: Django :: 5.0",
35+
"Framework :: Django :: 5.1",
3536
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
3637
]
3738
keywords = [ "pylint", "django", "plugin" ]
@@ -42,20 +43,21 @@ include = [ "pylint_django/LICENSE" ]
4243
exclude = [ "**/tests/**", "**/testutils.py", "**/tests.py" ]
4344

4445
[tool.poetry.dependencies]
45-
python = ">=3.8,<4.0"
46+
python = ">=3.9,<4.0"
4647
pylint-plugin-utils = ">=0.8"
47-
pylint = ">=2.0,<4"
48+
pylint = ">=3.0,<4"
4849
Django = { version = ">=2.2", optional = true }
4950

5051
[tool.poetry.group.dev.dependencies]
5152
tox = ">=4.9"
5253
pytest = "^7.3.1"
53-
ruff = ">=0.1.1"
54+
ruff = ">=0.6.9"
5455
wheel = "^0.40"
5556
pytest-cov = "^4"
5657
django-tables2 = "^2.6"
5758
factory-boy = "^3.3"
5859
django-tastypie = "^0.14"
60+
pre-commit = ">=1"
5961

6062
[tool.poetry.extras]
6163
with_django = [ "Django" ]

tox.ini

+7-6
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,313}-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,313}-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)