Skip to content
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: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
django-version: ["5.0", "5.1", "5.2", "-main"]

steps:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
django-version: ["4.0", "4.1", "4.2"]

steps:
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- published

env:
DEFAULT_PYTHON: 3.12
DEFAULT_PYTHON: 3.13

jobs:
release-pypi:
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ repos:
args: [--fix=lf]
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.14.3"
rev: "v0.14.4"
hooks:
- id: ruff-check
args: ["--fix"]
exclude: "tests/input/"
exclude: &functional "tests/functional/"
- id: ruff-format
exclude: ^pylint_django/tests/input.*$
exclude: *functional
args: [--line-length=120]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.11.0"
rev: "v2.11.1"
hooks:
- id: pyproject-fmt
# https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
Expand All @@ -40,4 +40,4 @@ repos:
language: system
types: [python]
args: ["-rn", "-sn", "--fail-on=I"]
exclude: "tests/input/"
exclude: *functional
6 changes: 4 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ Changelog
=========


Version 2.7.0
Version 2.6.2
-------------

Other
~~~~~

- Add CI tests against Django 5.2
- CI now tests against Django 5.2
- CI now tests against python 3.13
- CI now tests against python 3.14


Version 2.6.1
-------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
except blocks catching DoesNotExist exceptions:
https://github.com/pylint-dev/pylint-django/issues/81
"""

# pylint: disable=missing-docstring
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Test to validate that pylint_django doesn't produce
Instance of 'SubFactory' has no 'pk' member (no-member) warnings
"""

# pylint: disable=attribute-defined-outside-init, missing-docstring, too-few-public-methods
import factory
from django import test
Expand Down Expand Up @@ -36,7 +37,7 @@ class Meta:
class BookTestCase(test.LiveServerTestCase):
serialized_rollback = True

def _fixture_setup(self): # pylint: disable=arguments-differ
def _fixture_setup(self): # pylint: disable=arguments-differ
super()._fixture_setup()
self.book = BookFactory()
_author = AuthorFactory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
The issue is the lint tries resolving the `ForeignKey` for the
tastypie `ForeignKey` which cause import error.
"""

from tastypie import fields
from tastypie.fields import ForeignKey

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Checks that Pylint does not complain about no self argument in
factory.post_generation method.
"""

# pylint: disable=missing-docstring,too-few-public-methods,unused-argument,no-member
import factory

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Checks that Pylint does not complain about various
methods on many-to-many relationships
"""

from django.contrib.auth.models import AbstractUser, Permission

# pylint: disable=missing-docstring
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Checks that Pylint does not complain about ForeignKey pointing to model
in module of models package
"""

# pylint: disable=missing-docstring
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'id' attribute. Also see:
https://github.com/pylint-dev/pylint-django/issues/232#issuecomment-495242695
"""

# pylint: disable=missing-docstring, no-member
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Checks that Pylint does not complain about foreign key id access
"""

# pylint: disable=missing-docstring,wrong-import-position
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Checks that Pylint does not complain about ForeignKey pointing to model
in module of models package
"""

# pylint: disable=missing-docstring
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Checks that PyLint correctly handles string foreign keys
https://github.com/pylint-dev/pylint-django/issues/243
"""

# pylint: disable=missing-docstring, hard-coded-auth-user
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Checks that Pylint does not complain about various
methods on Django model fields.
"""

# pylint: disable=missing-docstring,wrong-import-position
from django.db import models
from django.db.models import ForeignKey, OneToOneField
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Checks that Pylint does not complain about django FormViews
having too many ancestors
"""

# pylint: disable=missing-docstring
from django.views.generic import FormView

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Checks that Pylint does not complain about django lazy proxy
when using gettext_lazy
"""

from django.utils.translation import gettext_lazy

gettext_lazy("{something}").format(something="lala")
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
Checks that Pylint does not complain about import of Q.
"""

# pylint: disable=missing-docstring,unused-import
from django.db.models import Q # noqa: F401
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Checks that Pylint does not complain about raising DoesNotExist
"""

# pylint: disable=missing-docstring
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Initial migration which should not raise any pylint warnings.
"""

# pylint: disable=missing-docstring, invalid-name
from django.db import migrations, models

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
> For this reason, it’s recommended you always create new columns with
> null=True, as this way they will be added immediately.
"""

# pylint: disable=missing-docstring, invalid-name
from datetime import timedelta

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Checks that Pylint does not complain about using Model and Manager methods
"""

# pylint: disable=missing-docstring
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Checks that Pylint complains about ModelForm using exclude
"""

# pylint: disable=missing-docstring
from django import forms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Checks that Pylint does not complain about a fairly standard
Django Model
"""

# pylint: disable=missing-docstring
from django.db import models

Expand Down
3 changes: 3 additions & 0 deletions pylint_django/tests/functional/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .models_author import Author

__all__ = ("Author",)
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Checks that Pylint does not complain about django lazy proxy
when using ugettext_lazy
"""

from django.utils.translation import ugettext_lazy

ugettext_lazy("{something}").format(something="lala")
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
See https://github.com/pylint-dev/pylint-django/issues/10
"""

from django.db import models

# pylint: disable=missing-docstring
Expand Down
3 changes: 0 additions & 3 deletions pylint_django/tests/input/models/__init__.py

This file was deleted.

Empty file.
Loading
Loading