forked from CZ-NIC/django-fido
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (52 loc) · 1.95 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[tox]
minversion = 3.15
isolated_build = True
envlist =
py{37,38,39,310}-quality
py37-django{32}-fido{11}
py{38,39}-django{32,40,41,42}-fido{11}
py310-django{32,40,41,42}-fido{11}
py311-django{41,42}-fido{11}
skip_missing_interpreters = True
[testenv]
passenv =
PYTHONWARNINGS
setenv =
DJANGO_SETTINGS_MODULE = django_fido.tests.settings
SKIP_NPM = 1
extras = test
deps =
coverage
django32: django == 3.2.*
django40: django == 4.0.*
django41: django == 4.1.*
django42: django == 4.2.*
fido11: fido2==1.1.*
commands =
coverage run --source=django_fido --branch -m django test {posargs:django_fido}
[testenv:py{37,38,39,310}-quality]
# Do not fail on first error, but run all the checks
ignore_errors = True
allowlist_externals = msgcmp
deps =
py{37,38,39}: django==3.0.* # Lowest supported version for migrations
py310: django==3.2.* # Lowest supported version for migrations
extras =
quality
types
commands =
isort --check-only --diff django_fido
flake8 --format=pylint --show-source django_fido
pydocstyle django_fido
mypy --package django_fido
django-admin makemigrations django_fido --noinput --dry-run --check --verbosity 3
# Check translations
polint --show-msg django_fido/locale/cs/LC_MESSAGES/django.po
# Ensure catalog is complete - make C locales to generate POT files and compare it using the msgcmp
django-admin makemessages --locale C --no-obsolete --no-location --keep-pot
msgcmp django_fido/locale/cs/LC_MESSAGES/django.po django_fido/locale/django.pot
# Check JS translations
polint --show-msg django_fido/locale/cs/LC_MESSAGES/djangojs.po
# Ensure catalog is complete - make C locales to generate POT files and compare it using the msgcmp
django-admin makemessages --locale C --no-obsolete --no-location --keep-pot --domain djangojs --ignore=node_modules
msgcmp django_fido/locale/cs/LC_MESSAGES/djangojs.po django_fido/locale/djangojs.pot