shopkeep / pytest-black

pytest plugin to enable formatting checks with black
MIT License
53 stars 23 forks source link

PytestUnknownMarkWarning #32

Closed jaraco closed 4 years ago

jaraco commented 5 years ago

When running with pytest-black, I see these warnings in a test run:

.tox/python/lib/python3.7/site-packages/_pytest/mark/structures.py:324
.tox/python/lib/python3.7/site-packages/_pytest/mark/structures.py:324
  /Users/jaraco/code/main/pip-run/.tox/python/lib/python3.7/site-packages/_pytest/mark/structures.py:324: PytestUnknownMarkWarning: Unknown pytest.mark.black - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    PytestUnknownMarkWarning,

-- Docs: https://docs.pytest.org/en/latest/warnings.html

Removing the --black from the addopts in pytest.ini, the warnings go away.

As you can see: Python 3.7.1, pytest-4.5.0, py-1.8.0, pluggy-0.11.0

jaraco commented 5 years ago

Looks like #31 seeks to address this warning. Please consider a release soon so I can avoid having to suppress the warning.