Skip to content

Commit 3db5b51

Browse files
committed
fix: linting issues
Signed-off-by: Nicolas <32845761+nicoklaus@users.noreply.github.com>
1 parent dab3dba commit 3db5b51

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

dejacode/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import ldap
1818
from django_auth_ldap.config import GroupOfNamesType
1919
from django_auth_ldap.config import LDAPSearch
20+
2021
from dejacode_toolkit.ldap import build_user_search
2122

2223
# The home directory of the dejacode user that owns the installation.

dejacode_toolkit/ldap.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88

99
import json
1010

11-
import ldap
1211
from django.core.exceptions import ImproperlyConfigured
12+
13+
import ldap
1314
from django_auth_ldap.config import LDAPSearch
1415
from django_auth_ldap.config import LDAPSearchUnion
1516

1617

1718
def build_user_search(user_searches, user_dn, user_filterstr):
18-
"""Return the ``AUTH_LDAP_USER_SEARCH`` object.
19+
"""
20+
Return the ``AUTH_LDAP_USER_SEARCH`` object.
1921
2022
When ``user_searches`` (a raw JSON string) is provided, parse and validate
2123
it and return an ``LDAPSearchUnion``. Otherwise, fall back to a single

dje/tests/test_ldap_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from django_auth_ldap.config import LDAPSearch
1313
from django_auth_ldap.config import LDAPSearchUnion
1414

15-
from dejacode.ldap_config import build_user_search
15+
from dejacode_toolkit.ldap import build_user_search
1616

1717

1818
class BuildUserSearchTestCase(SimpleTestCase):

0 commit comments

Comments
 (0)