This project has been archived by its maintainers, and is no longer receiving any updates.
pytest-max-warnings
[!IMPORTANT] This plugin and codebase are archived. As of pytest 9.1.0, the
--max-warningsoption is built into pytest itself. See the pytest documentation for details. No further releases of this plugin are planned.
A Pytest plugin to exit non-zero exit code when the configured maximum warnings has been exceeded.
Installation
You can install "pytest-max-warnings" via pip:
pip install pytest-max-warnings
or any other package manager you prefer.
Usage
You can set the maximum number of warnings allowed by using the --max-warnings option:
pytest --max-warnings 10
If the number of warnings exceeds the maximum, the test run will exit with a non-zero exit code.
License
Distributed under the terms of the MIT license, "pytest-max-warnings" is free and open source software. See LICENSE for more details.
Authors
Release files for pytest-max-warnings 0.1.0.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_max_warnings-0.1.0.post1.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_max_warnings-0.1.0.post1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / pytest_max_warnings-0.1.0.post1.tar.gz
| Download URL | pytest_max_warnings-0.1.0.post1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a044f39fb4e0cc0d1246a5f5b99c0e193f7181241840791c7566ce51d579d6e
|
|
BLAKE2b-256 checksum How to use checksums |
6965a546ca58b192606630eb1cc9c24d529a1b21a6bb790b60460ce7eef54d16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.
Transparency logRelease files / pytest_max_warnings-0.1.0.post1-py3-none-any.whl
| Download URL | pytest_max_warnings-0.1.0.post1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
685c08c13120e2323d5d2138979506a40f799e5be2c0a10d96b2a1c776bce15d
|
|
BLAKE2b-256 checksum How to use checksums |
c12cd72ad5df7c4c1cdeafcf916678ecab0d30361e45a9b7a6442c1086403c05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.
Transparency log