New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PytestConfigWarning for log_print, flake8-ignore, flake8-max-line-length #7612
Comments
Why do you have flake8 configuration in a pytest.ini file? At least according to https://flake8.pycqa.org/en/latest/user/configuration.html that's not a place flake8 reads its config from. |
We are using a pytest Plugin for flake8.
https://stackoverflow.com/questions/59718826/how-to-add-flake8-configuration-file-in-pytest
The Warnung about log_print is confusing since the Doc states it is
supported by pytest.
https://docs.pytest.org/en/stable/reference.html#confval-log_print
Florian Bruhin <notifications@github.com> schrieb am Mo., 3. Aug. 2020,
14:40:
… Why do you have flake8 configuration in a pytest.ini file? At least
according to https://flake8.pycqa.org/en/latest/user/configuration.html
that's not a place flake8 reads its config from.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7612 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKZFSAG4IBW5FCN5VUREWILR62V5DANCNFSM4PTH5MYQ>
.
|
You don't have
|
@The-Compiler You are right, flake8 is not locally installed. I have tried in pytest.ini
but then, pytest does not recognize PytestConfigWarning: File "venv\lib\site-packages_pytest\warnings.py", line 113, in catch_warnings_for_item |
Try |
@The-Compiler With pytest.PytestConfigWarning the INTERNALERROR is gone but I still get the warnings. I have event tried to ignore all PytestConfigWarning but with no success.
This means, filterwarnings does nothing in my case. How can I suppress these warnings? ============================== warnings summary ===============================
venv\lib\site-packages_pytest\config_init_.py:1148 |
Executing our tests with PyTest 6.1 on Windows leads to PytestConfigWarning when parsing pytest.ini
Installed packages and pytest.ini is attached.
Thank you for providing powerful PyTest!
The text was updated successfully, but these errors were encountered: