Skip to content
Snippets Groups Projects
Verified Commit 645a39fe authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix issues reported by pylama.

parent 0d09ca0d
No related branches found
No related tags found
No related merge requests found
from django.utils.translation import ugettext_lazy as _
import django_tables2 as tables
from django_tables2.utils import A
......
from django.apps import apps
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
import debug_toolbar
......
......@@ -26,7 +26,7 @@ def get_app_packages() -> Sequence[str]:
# Add additional apps defined in module's INSTALLED_APPS constant
additional_apps = getattr(mod, 'INSTALLED_APPS', [])
for app in additional_apps:
if not app in pkgs:
if app not in pkgs:
pkgs.append(app)
pkgs.append('biscuit.apps.%s' % pkg[1])
......
from typing import Callable
from django.contrib.auth.decorators import login_required
from django.conf import settings
from django.http import Http404, HttpRequest, HttpResponse
from django.shortcuts import get_object_or_404, render, redirect
from django_tables2 import RequestConfig
......
......@@ -36,7 +36,13 @@ case "$1" in
poetry run sh -c "cd $d; autopep8 -i -r ."
done
;;
"pylama")
cd "$(dirname "$0")"
for d in biscuit/core apps/official/*/biscuit/apps/*; do
echo; echo "Entering $d."
poetry run sh -c "cd $d; pylama ."
done
;;
*)
;;
esac
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