mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Fix linter
This commit is contained in:
parent
78d9301490
commit
582d440365
3 changed files with 7 additions and 7 deletions
|
@ -117,7 +117,7 @@ class Authenticator(BaseAuthenticator):
|
|||
|
||||
# we aren't using sha-512 but something else that is weaker, proceed to upgrade
|
||||
if not hashed_password["userPassword"][0].startswith("{CRYPT}$6$"):
|
||||
self.update("cn=admin", {"userPassword": _hash_user_password(password),})
|
||||
self.update("cn=admin", {"userPassword": _hash_user_password(password), })
|
||||
|
||||
# Additional LDAP methods
|
||||
# TODO: Review these methods
|
||||
|
|
|
@ -3,12 +3,12 @@ import logging
|
|||
|
||||
# import all constants because other modules try to import them from this
|
||||
# module because SUCCESS is defined in this module
|
||||
from logging import (
|
||||
from logging import ( # noqa: F401
|
||||
addLevelName,
|
||||
setLoggerClass,
|
||||
Logger,
|
||||
getLogger,
|
||||
NOTSET, # noqa
|
||||
NOTSET,
|
||||
DEBUG,
|
||||
INFO,
|
||||
WARNING,
|
||||
|
@ -35,7 +35,7 @@ DEFAULT_LOGGING = {
|
|||
"stream": "ext://sys.stdout",
|
||||
},
|
||||
},
|
||||
"loggers": {"moulinette": {"level": "DEBUG", "handlers": ["console"],},},
|
||||
"loggers": {"moulinette": {"level": "DEBUG", "handlers": ["console"], }, },
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ def patch_logging(moulinette):
|
|||
"format": "%(asctime)-15s %(levelname)-8s %(name)s %(funcName)s - %(fmessage)s" # noqa
|
||||
},
|
||||
},
|
||||
"filters": {"action": {"()": "moulinette.utils.log.ActionFilter",},},
|
||||
"filters": {"action": {"()": "moulinette.utils.log.ActionFilter", }, },
|
||||
"handlers": {
|
||||
"api": {
|
||||
"level": level,
|
||||
|
@ -66,14 +66,14 @@ def patch_logging(moulinette):
|
|||
},
|
||||
},
|
||||
"loggers": {
|
||||
"moulinette": {"level": level, "handlers": [], "propagate": True,},
|
||||
"moulinette": {"level": level, "handlers": [], "propagate": True, },
|
||||
"moulinette.interface": {
|
||||
"level": level,
|
||||
"handlers": handlers,
|
||||
"propagate": False,
|
||||
},
|
||||
},
|
||||
"root": {"level": level, "handlers": root_handlers,},
|
||||
"root": {"level": level, "handlers": root_handlers, },
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue