-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtox.ini
More file actions
59 lines (55 loc) · 1.97 KB
/
Copy pathtox.ini
File metadata and controls
59 lines (55 loc) · 1.97 KB
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
57
58
59
[tox]
minversion = 3.15
isolated_build = True
envlist =
py{39,310,311}-quality
py{39}-django{42}-fido{11,12}
py310-django{42,50,51,52}-fido{11,12,20,21,22}
py{311,312}-django{42,50,51,52}-fido{11,12,20,21,22}
skip_missing_interpreters = True
[testenv]
passenv =
PYTHONWARNINGS
setenv =
DJANGO_SETTINGS_MODULE = django_fido.tests.settings
SKIP_NPM = 1
extras = test
deps =
coverage[toml]
django42: django == 4.2.*
django50: django == 5.0.*
django51: django == 5.1.*
django52: django == 5.2.*
fido11: fido2==1.1.*
fido12: fido2==1.2.*
fido20: fido2==2.0.*
fido21: fido2==2.1.*
fido22: fido2==2.2.*
commands =
coverage run --source=django_fido --branch -m django test {posargs:django_fido}
constrain_package_deps = true
use_frozen_constraints = true
[testenv:py{39,310,311,312}-quality]
# Do not fail on first error, but run all the checks
ignore_errors = True
allowlist_externals = msgcmp
deps =
py{39,310,311,312}: django==4.2.* # Lowest supported version for migrations
extras =
quality
types
commands =
ruff check
ruff format --check
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