Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
b4fde1b1
Verified
Commit
b4fde1b1
authored
4 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Fix lint job
parent
98cab4ef
No related branches found
No related tags found
1 merge request
!361
Fix lint job
Pipeline
#3652
failed
4 years ago
Stage: test
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
aleksis/core/apps.py
+1
-1
1 addition, 1 deletion
aleksis/core/apps.py
aleksis/core/settings.py
+1
-1
1 addition, 1 deletion
aleksis/core/settings.py
aleksis/core/util/core_helpers.py
+0
-1
0 additions, 1 deletion
aleksis/core/util/core_helpers.py
tox.ini
+2
-3
2 additions, 3 deletions
tox.ini
with
4 additions
and
6 deletions
aleksis/core/apps.py
+
1
−
1
View file @
b4fde1b1
...
...
@@ -14,7 +14,7 @@ from .registries import (
site_preferences_registry
,
)
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
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/settings.py
+
1
−
1
View file @
b4fde1b1
...
...
@@ -208,7 +208,7 @@ if _settings.get("ldap.uri", None):
NestedGroupOfNamesType
,
NestedGroupOfUniqueNamesType
,
PosixGroupType
,
)
# noqa
)
# Enable Django's integration to LDAP
AUTHENTICATION_BACKENDS
.
append
(
"
django_auth_ldap.backend.LDAPBackend
"
)
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/util/core_helpers.py
+
0
−
1
View file @
b4fde1b1
...
...
@@ -365,7 +365,6 @@ def queryset_rules_filter(
obj
:
Union
[
HttpRequest
,
Model
],
queryset
:
QuerySet
,
perm
:
str
)
->
QuerySet
:
"""
Filter queryset by user and permission.
"""
wanted_objects
=
set
()
if
isinstance
(
obj
,
HttpRequest
)
and
hasattr
(
obj
,
"
user
"
):
obj
=
obj
.
user
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
2
−
3
View file @
b4fde1b1
...
...
@@ -23,7 +23,7 @@ setenv =
[testenv:lint]
commands
=
-
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/
[testenv:security]
...
...
@@ -40,7 +40,7 @@ commands = poetry run make -C docs/ html {posargs}
[testenv:reformat]
commands
=
poetry
run
isort
-rc
aleksis/
poetry
run
isort
aleksis/
poetry
run
black
aleksis/
[flake8]
...
...
@@ -52,7 +52,6 @@ ignore = BLK100,E203,E231,W503,D100,D101,D102,D103,D104,D105,D106,D107,RST215,RS
line_length
=
100
multi_line_output
=
3
include_trailing_comma
=
1
use_parantheses
=
1
default_section
=
THIRDPARTY
known_first_party
=
aleksis
known_django
=
django
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment