Replies: 1 comment 2 replies
-
I`m not sure you can ignore warnings by path, but you can ignore them for a specific package # pyproject.toml (also you can use pytest.ini)
[tool.pytest.ini_options]
filterwarnings = [
"ignore:::jose.*",
"ignore:::hose.*",
] |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm using
pytest
lib for testing and sometimes I get warnings emitted in code in libs imported (all are in/venv
directory).I do not want to turn off warnings that are emitted in code I wrote, but warnings emitted in code of any 3rd party lib are of no use.
How to turn off or hide all warnings that come from code in specified directory, as well in any subfolders of that directory, in my case -
/venv
?One specific example for my use case can be:
Also asked this question on SO, so far no answers :(
Beta Was this translation helpful? Give feedback.
All reactions