treat warnings as errors when running the tests

This commit is contained in:
Florian Zimmermann 2024-07-04 11:27:12 +02:00
parent 28c71c58f7
commit 0a3c2f742f
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ dev-setup:
.PHONY: tests ## Run unit tests
tests:
PYTHONPATH=. pytest graphene_django --cov=graphene_django -vv
PYTHONPATH=. pytest -Werror graphene_django --cov=graphene_django -vv
.PHONY: format ## Format code
format:

View File

@ -34,7 +34,7 @@ deps =
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
djangomain: https://github.com/django/django/archive/main.zip
commands = {posargs:pytest --cov=graphene_django graphene_django examples}
commands = {posargs:pytest -Werror --cov=graphene_django graphene_django examples}
[testenv:pre-commit]
skip_install = true