mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
Minor changes to flake8 related updates
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
5439084c84
commit
86da6a894a
@ -69,8 +69,8 @@ class Uwsgi(app.LeaderComponent):
|
||||
component_id should be a unique ID across all components of an app and
|
||||
across all components.
|
||||
|
||||
uwsgi_name is the primary part of the configuration file path
|
||||
which must be enabled/disabled by this component.
|
||||
uwsgi_name is the primary part of the configuration file path which
|
||||
must be enabled/disabled by this component.
|
||||
|
||||
"""
|
||||
super().__init__(component_id)
|
||||
|
||||
@ -28,6 +28,8 @@ from plinth.modules.apache.components import Webserver
|
||||
from plinth.modules.firewall.components import Firewall
|
||||
from plinth.utils import format_lazy
|
||||
|
||||
from .manifest import clients
|
||||
|
||||
domain_name_file = "/etc/diaspora/domain_name"
|
||||
lazy_domain_name = None # To avoid repeatedly reading from file
|
||||
|
||||
@ -70,7 +72,6 @@ description = [
|
||||
' federate with other diaspora* pods.')
|
||||
]
|
||||
|
||||
from .manifest import clients # noqa pylint:disable=E402 isort:skip
|
||||
clients = clients
|
||||
|
||||
app = None
|
||||
|
||||
@ -63,7 +63,7 @@ def test_getting_nonexistent_props(editor):
|
||||
editor.read_conf()
|
||||
editor.idx = 0
|
||||
with pytest.raises(KeyError):
|
||||
_ = editor['blabla']
|
||||
_ = editor['blabla'] # noqa
|
||||
|
||||
|
||||
def test_setting_new_props(editor):
|
||||
|
||||
@ -18,10 +18,9 @@
|
||||
Forms for the Single Sign On app of FreedomBox.
|
||||
"""
|
||||
|
||||
from django.contrib.auth.forms import (
|
||||
AuthenticationForm as DjangoAuthenticationForm
|
||||
)
|
||||
from captcha.fields import CaptchaField
|
||||
from django.contrib.auth.forms import \
|
||||
AuthenticationForm as DjangoAuthenticationForm
|
||||
|
||||
|
||||
class AuthenticationForm(DjangoAuthenticationForm):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user