Skip to content
Snippets Groups Projects
Verified Commit b4fde1b1 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Fix lint job

parent 98cab4ef
No related branches found
No related tags found
1 merge request!361Fix lint job
Pipeline #3652 failed
...@@ -14,7 +14,7 @@ from .registries import ( ...@@ -14,7 +14,7 @@ from .registries import (
site_preferences_registry, site_preferences_registry,
) )
from .util.apps import AppConfig from .util.apps import AppConfig
from .util.core_helpers import get_site_preferences, has_person, lazy_preference from .util.core_helpers import get_site_preferences, has_person
from .util.sass_helpers import clean_scss from .util.sass_helpers import clean_scss
......
...@@ -208,7 +208,7 @@ if _settings.get("ldap.uri", None): ...@@ -208,7 +208,7 @@ if _settings.get("ldap.uri", None):
NestedGroupOfNamesType, NestedGroupOfNamesType,
NestedGroupOfUniqueNamesType, NestedGroupOfUniqueNamesType,
PosixGroupType, PosixGroupType,
) # noqa )
# Enable Django's integration to LDAP # Enable Django's integration to LDAP
AUTHENTICATION_BACKENDS.append("django_auth_ldap.backend.LDAPBackend") AUTHENTICATION_BACKENDS.append("django_auth_ldap.backend.LDAPBackend")
......
...@@ -365,7 +365,6 @@ def queryset_rules_filter( ...@@ -365,7 +365,6 @@ def queryset_rules_filter(
obj: Union[HttpRequest, Model], queryset: QuerySet, perm: str obj: Union[HttpRequest, Model], queryset: QuerySet, perm: str
) -> QuerySet: ) -> QuerySet:
"""Filter queryset by user and permission.""" """Filter queryset by user and permission."""
wanted_objects = set() wanted_objects = set()
if isinstance(obj, HttpRequest) and hasattr(obj, "user"): if isinstance(obj, HttpRequest) and hasattr(obj, "user"):
obj = obj.user obj = obj.user
......
...@@ -23,7 +23,7 @@ setenv = ...@@ -23,7 +23,7 @@ setenv =
[testenv:lint] [testenv:lint]
commands = commands =
- poetry run black --check --diff aleksis/ - poetry run black --check --diff aleksis/
- poetry run isort -c --diff --stdout -rc aleksis/ - poetry run isort -c --diff --stdout aleksis/
poetry run flake8 {posargs} aleksis/ poetry run flake8 {posargs} aleksis/
[testenv:security] [testenv:security]
...@@ -40,7 +40,7 @@ commands = poetry run make -C docs/ html {posargs} ...@@ -40,7 +40,7 @@ commands = poetry run make -C docs/ html {posargs}
[testenv:reformat] [testenv:reformat]
commands = commands =
poetry run isort -rc aleksis/ poetry run isort aleksis/
poetry run black aleksis/ poetry run black aleksis/
[flake8] [flake8]
...@@ -52,7 +52,6 @@ ignore = BLK100,E203,E231,W503,D100,D101,D102,D103,D104,D105,D106,D107,RST215,RS ...@@ -52,7 +52,6 @@ ignore = BLK100,E203,E231,W503,D100,D101,D102,D103,D104,D105,D106,D107,RST215,RS
line_length = 100 line_length = 100
multi_line_output = 3 multi_line_output = 3
include_trailing_comma = 1 include_trailing_comma = 1
use_parantheses = 1
default_section = THIRDPARTY default_section = THIRDPARTY
known_first_party = aleksis known_first_party = aleksis
known_django = django known_django = django
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment