Skip to content

Commit 52fc41d

Browse files
[pre-commit.ci] pre-commit autoupdate
updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.4.9](astral-sh/ruff-pre-commit@v0.1.4...v0.4.9) - [github.com/psf/black: 23.10.1 → 24.4.2](psf/black@23.10.1...24.4.2) - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v4.0.0-alpha.8](pre-commit/mirrors-prettier@v3.0.3...v4.0.0-alpha.8)
1 parent a2b4459 commit 52fc41d

File tree

51 files changed

+53
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+53
-5
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@ ci:
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.5.0
6+
rev: v4.6.0
77
hooks:
88
- id: trailing-whitespace
99
- id: end-of-file-fixer
1010
- id: mixed-line-ending
1111
args: [--fix=lf]
1212
- id: debug-statements
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: "v0.1.4"
14+
rev: "v0.4.9"
1515
hooks:
1616
- id: ruff
1717
args: ["--fix"]
1818
exclude: "tests/input/"
1919
- repo: https://github.com/psf/black
20-
rev: 23.10.1
20+
rev: 24.4.2
2121
hooks:
2222
- id: black
2323
args: [--safe, --line-length=120]
2424
- repo: https://github.com/pre-commit/mirrors-prettier
25-
rev: v3.0.3
25+
rev: v4.0.0-alpha.8
2626
hooks:
2727
- id: prettier
2828
args: [--prose-wrap=always, --print-width=88]

pylint_django/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""pylint_django module."""
22

3-
43
from pylint_django import plugin
54

65
register = plugin.register # pylint: disable=invalid-name

pylint_django/__pkginfo__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""pkginfo."""
2+
23
BASE_ID = 51

pylint_django/augmentations/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Augmentations."""
2+
23
# pylint: disable=invalid-name
34
import functools
45
import itertools

pylint_django/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Checkers."""
2+
23
from pylint_django.checkers.auth_user import AuthUserChecker
34
from pylint_django.checkers.django_installed import DjangoInstalledChecker
45
from pylint_django.checkers.foreign_key_strings import ForeignKeyStringsChecker

pylint_django/checkers/forms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Models."""
2+
23
from astroid.nodes import Assign, AssignName, ClassDef
34
from pylint.checkers import BaseChecker
45

pylint_django/checkers/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Models."""
2+
23
from astroid import Const
34
from astroid.nodes import Assign, AssignName, ClassDef, FunctionDef
45
from pylint.checkers import BaseChecker

pylint_django/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Common Django module."""
2+
23
# we want to import the transforms to make sure they get added to the astroid manager,
34
# however we don't actually access them directly, so we'll disable the warning
45
from pylint_django import compat

pylint_django/tests/input/external_drf_noerror_serializer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Checks that Pylint does not complain about DRF serializers
33
"""
4+
45
# pylint: disable=C0111,W5101,use-symbolic-message-instead
56

67
from rest_framework import serializers

pylint_django/tests/input/external_factory_boy_noerror.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Test to validate that pylint_django doesn't produce
33
Instance of 'SubFactory' has no 'pk' member (no-member) warnings
44
"""
5+
56
# pylint: disable=attribute-defined-outside-init, missing-docstring, too-few-public-methods
67
import factory
78
from django import test

0 commit comments

Comments
 (0)