diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cd33444..fbfac83 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,6 +8,7 @@ jobs: build: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: include: - python-version: 3.7 diff --git a/tests/serializers.py b/tests/serializers.py index 811e035..3c5e46f 100644 --- a/tests/serializers.py +++ b/tests/serializers.py @@ -202,9 +202,10 @@ class Meta: class UFMChildSerializerForValidatorMessage(UniqueFieldsMixin, serializers.ModelSerializer): field = serializers.CharField(validators=[ - UniqueValidator(queryset=models.UFMChild.objects.all(), - message=UNIQUE_ERROR_MESSAGE - ) + UniqueValidator( + queryset=models.UFMChild.objects.all(), # type: ignore[attr-defined] + message=UNIQUE_ERROR_MESSAGE, + ) ]) class Meta: diff --git a/tox.ini b/tox.ini index e086426..c542b12 100644 --- a/tox.ini +++ b/tox.ini @@ -4,10 +4,10 @@ DJANGO_SETTINGS_MODULE = tests.settings [tox] envlist = - py{37,38}-dj{22}-drf{38,39,310,311}-{pytest,mypy} - py{37,38}-dj{30}-drf{310,311}-{pytest,mypy} - py{37,38,39,310,311}-dj{31,32}-drf{311,312,313,314}-{pytest,mypy} - py{38,39,310,311}-dj{40,41}-drf{313,314}-{pytest,mypy} + py{37,38}-dj{22}-drf{38,39,310,311}-pytest + py{37,38}-dj{30}-drf{310,311}-pytest + py{37,38,39,310,311}-dj{31,32}-drf{311,312,313,314}-pytest + py{38,39,310,311}-dj{40,41}-drf{313,314}-pytest py{38,39,310,311}-dj{42}-drf{314}-{pytest,mypy} skip_missing_interpreters = true @@ -47,9 +47,8 @@ deps = drf313: djangorestframework>=3.13,<3.14 drf314: djangorestframework>=3.14,<3.15 pytest: -rrequirements.txt - mypy: git+https://github.com/typeddjango/djangorestframework-stubs.git@946c7d60aaecdc9ef307f5e1f8eb55f7083ffb16#egg=djangorestframework-stubs - mypy: djangorestframework-stubs + mypy: djangorestframework-stubs[compatible-mypy] commands= pytest: pytest --cov drf_writable_nested --cov-report=xml - mypy: mypy example - mypy: mypy . + mypy: mypy --show-traceback example + mypy: mypy --show-traceback .