johnthagen / python-blueprint

🐍 Example Python project using best practices 🥇

Home Page:https://johnthagen.github.io/python-blueprint/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pass -Werror to pytest rather than python

johnthagen opened this issue · comments

From pytest --help:

pytest-warnings:
  -W PYTHONWARNINGS, --pythonwarnings=PYTHONWARNINGS
                        set which warnings to report, see -W option of python itself.

Passing -Werror to pytest directly is recommended from the help, and works better for pytest-xdist.