Skip to content

Commit

Permalink
Running latest black formatter on all code, however it must not be ru…
Browse files Browse the repository at this point in the history
…n on the test input files - the .rc files reference line numbers in the .py files, if the .py files change then the tests all break..
  • Loading branch information
carlio committed Jul 20, 2024
1 parent 59e413d commit df35222
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ repos:
rev: 24.4.2
hooks:
- id: black
args: [--safe, --line-length=120, "--exclude=pylint_django/tests/input/"]
# see https://stackoverflow.com/a/61046953
exclude: ^pylint_django/tests/input.*$
args: [--safe, --line-length=120]
- repo: local
hooks:
- id: pylint
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ install:


make test:
tox
tox
1 change: 0 additions & 1 deletion pylint_django/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""pylint_django module."""


from pylint_django import plugin

register = plugin.register # pylint: disable=invalid-name
Expand Down
1 change: 1 addition & 0 deletions pylint_django/__pkginfo__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""pkginfo."""

BASE_ID = 51
1 change: 1 addition & 0 deletions pylint_django/augmentations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Augmentations."""

# pylint: disable=invalid-name
import functools
import itertools
Expand Down
1 change: 1 addition & 0 deletions pylint_django/checkers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Checkers."""

from pylint_django.checkers.auth_user import AuthUserChecker
from pylint_django.checkers.django_installed import DjangoInstalledChecker
from pylint_django.checkers.foreign_key_strings import ForeignKeyStringsChecker
Expand Down
1 change: 1 addition & 0 deletions pylint_django/checkers/forms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Models."""

from astroid.nodes import Assign, AssignName, ClassDef
from pylint.checkers import BaseChecker

Expand Down
1 change: 1 addition & 0 deletions pylint_django/checkers/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Models."""

from astroid import Const
from astroid.nodes import Assign, AssignName, ClassDef, FunctionDef
from pylint.checkers import BaseChecker
Expand Down
1 change: 1 addition & 0 deletions pylint_django/plugin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common Django module."""

# we want to import the transforms to make sure they get added to the astroid manager,
# however we don't actually access them directly, so we'll disable the warning
from pylint_django import compat
Expand Down
1 change: 1 addition & 0 deletions pylint_django/transforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
For example, the ForeignKeyStringsChecker loads the foreignkey.py transforms
itself as it may be disabled independently of the rest of pylint-django
"""

import os
import re

Expand Down
1 change: 1 addition & 0 deletions pylint_django/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utils."""

import sys

import astroid
Expand Down
7 changes: 0 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ include = ["pylint_django/LICENSE"]
exclude = ["**/tests/**", "**/testutils.py", "**/tests.py"]


[project.urls]
"Repository" = "https://github.com/pylint-dev/pylint-djangp"
"Bug Tracker" = "https://github.com/pylint-dev/pylint-djangp/issues"
"Changelog" = "https://github.com/pylint-dev/pylint-django/blob/master/CHANGELOG.rst"
"Contributors" = "https://github.com/pylint-dev/pylint-django/blob/master/CONTRIBUTORS.md"


[tool.poetry.dependencies]
python = ">=3.8,<4.0"
pylint-plugin-utils = ">=0.8"
Expand Down

0 comments on commit df35222

Please sign in to comment.