forked from Github-Mirrors/canaille
added 'autoflake' to the precommit tool list
This commit is contained in:
parent
b65d822e5c
commit
cd1d0a30d5
6 changed files with 5 additions and 5 deletions
|
@ -6,6 +6,10 @@ repos:
|
|||
- id: fix-byte-order-marker
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- repo: https://github.com/PyCQA/autoflake
|
||||
rev: v2.0.0
|
||||
hooks:
|
||||
- id: autoflake
|
||||
- repo: https://github.com/hadialqattan/pycln
|
||||
rev: v2.1.2
|
||||
hooks:
|
||||
|
|
|
@ -4,7 +4,6 @@ from functools import wraps
|
|||
from urllib.parse import urlsplit
|
||||
from urllib.parse import urlunsplit
|
||||
|
||||
import ldap
|
||||
from canaille.models import User
|
||||
from flask import abort
|
||||
from flask import current_app
|
||||
|
|
|
@ -6,7 +6,6 @@ from flask_wtf import FlaskForm
|
|||
from flask_wtf.file import FileAllowed
|
||||
from flask_wtf.file import FileField
|
||||
|
||||
from .i18n import available_language_codes
|
||||
from .i18n import native_language_name_from_code
|
||||
from .models import Group
|
||||
from .models import User
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
from flask import abort
|
||||
from flask import Blueprint
|
||||
from flask import current_app
|
||||
from flask import flash
|
||||
from flask import redirect
|
||||
from flask import request
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from flask import Blueprint
|
||||
from flask import current_app
|
||||
from flask import g
|
||||
from flask import jsonify
|
||||
from flask import request
|
||||
|
|
|
@ -43,7 +43,7 @@ def test_environment_configuration(slapd_server, configuration, tmp_path):
|
|||
|
||||
def test_no_configuration():
|
||||
with pytest.raises(Exception) as exc:
|
||||
app = create_app()
|
||||
create_app()
|
||||
|
||||
assert "No configuration file found." in str(exc)
|
||||
|
||||
|
|
Loading…
Reference in a new issue