root: add ruff linter (#5240)

* root: add ruff linter

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* actually add ruff

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix lint

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2023-04-18 13:28:19 +02:00
committed by GitHub
parent 5f99887b50
commit dfa80543b5
20 changed files with 108 additions and 70 deletions

View File

@ -155,6 +155,6 @@ if not CONFIG.y_bool("disable_startup_analytics", False):
},
timeout=5,
)
# pylint: disable=bare-except
except: # nosec
# pylint: disable=broad-exception-caught
except Exception: # nosec
pass