tox.ini: remove constraint on pylint version (#84019)
gitea/authentic/pipeline/head This commit looks good Details

authentic2.apps module had to be renamed in authntic2.app and le
AppConfig class referenced explicitely in settings.py to prevent
collision with the authentic2.apps package (it only bothers pylint,
python3 is happy to load Django applications from authentic2.apps in the
previous situation).
This commit is contained in:
Benjamin Dauvergne 2023-11-28 11:25:01 +01:00
parent 293347c86b
commit 8eea700e99
4 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ DATABASES = {
}
}
EOF
APPS=$(env DJANGO_SETTINGS_MODULE=authentic2.settings python -c 'from django.conf import settings; print(" ".join(p for p in (p.split(".")[-1] for p in settings.INSTALLED_APPS if not p.startswith("django.")) if p not in ["admin", "auth", "contenttypes"]))')
APPS=$(env DJANGO_SETTINGS_MODULE=authentic2.settings python -c 'from django.conf import settings; print(" ".join(p for p in ((p.split(".")[-1] if not p.endswith("Config") else p.split(".")[-3]) for p in settings.INSTALLED_APPS if not p.startswith("django.")) if p not in ["admin", "auth", "contenttypes"]))')
TEMPFILE=`mktemp`
trap "rm -f ${TEMPFILE} ${CHECK_MIGRATIONS_SETTINGS}" EXIT

View File

@ -160,7 +160,7 @@ INSTALLED_APPS = (
'authentic2.apps.authenticators',
'authentic2.apps.journal',
'authentic2.backends',
'authentic2',
'authentic2.app.Authentic2Config',
'django_rbac',
'authentic2.a2_rbac',
'gadjo',

View File

@ -108,8 +108,8 @@ setenv =
SETUPTOOLS_USE_DISTUTILS=stdlib
NUMPROCESSES={env:NUMPROCESSES:1}
deps =
pylint<3
astroid<3
pylint
astroid
pylint-django
psycopg2-binary
django_webtest