diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 333a334..f2b3e76 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.11"] + python-version: ["3.12"] toxenv: [django_not_installed, ruff, pylint, readme] steps: @@ -40,7 +40,7 @@ jobs: fail-fast: false matrix: python-version: ["3.10", "3.11", "3.12"] - django-version: ["5.0", "-main"] + django-version: ["5.0", "5.1", "-main"] steps: - uses: actions/checkout@v4 @@ -75,7 +75,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12"] django-version: ["4.0", "4.1", "4.2"] steps: @@ -103,7 +103,7 @@ jobs: strategy: # TODO: use a YAML anchor - not supported in GitHub actions "yet" fail-fast: false matrix: - python-version: [3.8, 3.9] + python-version: [3.9] django-version: [3.2, 3.1, "3.0", "2.2"] steps: diff --git a/pyproject.toml b/pyproject.toml index 5238b32..82b8fc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires = [ "poetry-core>=1" ] [tool.poetry] name = "pylint-django" -version = "2.7.0" +version = "2.6.0" readme = "README.rst" description = "A Pylint plugin to help Pylint understand the Django web framework" repository = "https://github.com/pylint-dev/pylint-django" @@ -17,7 +17,6 @@ classifiers = [ "Operating System :: Unix", "Topic :: Software Development :: Quality Assurance", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -32,6 +31,7 @@ classifiers = [ "Framework :: Django :: 4.1", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", ] keywords = [ "pylint", "django", "plugin" ] @@ -42,20 +42,21 @@ include = [ "pylint_django/LICENSE" ] exclude = [ "**/tests/**", "**/testutils.py", "**/tests.py" ] [tool.poetry.dependencies] -python = ">=3.8,<4.0" +python = ">=3.9,<4.0" pylint-plugin-utils = ">=0.8" -pylint = ">=2.0,<4" +pylint = ">=3.0,<4" Django = { version = ">=2.2", optional = true } [tool.poetry.group.dev.dependencies] tox = ">=4.9" pytest = "^7.3.1" -ruff = ">=0.1.1" +ruff = ">=0.6.9" wheel = "^0.40" pytest-cov = "^4" django-tables2 = "^2.6" factory-boy = "^3.3" django-tastypie = "^0.14" +pre-commit = ">=1" [tool.poetry.extras] with_django = [ "Django" ] diff --git a/tox.ini b/tox.ini index c95fec5..c27b6b7 100644 --- a/tox.ini +++ b/tox.ini @@ -7,9 +7,9 @@ envlist = flake8 pylint readme - py{38,39}-django{22,30,31,32} - py{38,39,310,311,312}-django{40,41,42} - py{310,311,312}-django{50,-main} + py{39}-django{22,30,31,32} + py{39,310,311,312}-django{40,41,42} + py{310,311,312}-django{50,51,-main} requires = pip >=21.0.1 @@ -21,13 +21,13 @@ commands = django_not_installed: bash pylint_django/tests/test_django_not_installed.sh pylint: pylint pylint_django readme: bash -c "poetry build && twine check dist/*" - py{37,38,39,310,311,312}-django{22,30,31,32,40,41,42,50}: bash scripts/test.sh --cov=pylint_django + py{38,39,310,311,312}-django{22,30,31,32,40,41,42,50}: bash scripts/test.sh --cov=pylint_django clean: find . -type f -name '*.pyc' -delete clean: find . -type d -name __pycache__ -delete clean: rm -rf build/ .cache/ dist/ .eggs/ pylint_django.egg-info/ .tox/ deps = ruff: ruff - pylint: pylint<3 + pylint: pylint>3 pylint: Django readme: twine readme: wheel @@ -39,6 +39,7 @@ deps = django41: Django>=4.1,<4.2 django42: Django>=4.2,<4.3 django50: Django>=5.0,<5.1 + django51: Django>=5.1,<5.2 django-main: Django django-main: git+https://github.com/pylint-dev/astroid@main django-main: git+https://github.com/pylint-dev/pylint@main @@ -48,6 +49,6 @@ setenv = allowlist_externals = django_not_installed: bash readme: bash - django{22,30,31,32,40,41,42,50,-main}: bash + django{22,30,31,32,40,41,42,50,51,-main}: bash clean: find clean: rm