pytest-lf-skip
A pytest plugin which makes --last-failed skip instead of deselect tests.
I made this plugin to resolve a small but annoying-enough issue that I encountered in VS Code where the test panel would not show all of my tests when I had the --last-failed option enabled for pytest, due to the previously passed tests being deselected instead of skipped.
Installation
You can install pytest-lf-skip from pip:
pip install pytest-lf-skip
Usage
Just add the --lf-skip or --last-failed-skip argument to your pytest command when you use --last-failed:
pytest --last-failed --last-failed-skip
Now previously passed tests will be skipped instead of being deselected.
VS Code
If you are using VS Code, you can make use of the --auto-last-failed-skip-vscode argument, which will automatically enable --lf and --lf-skip when running tests from the VS Code test explorer.
To enable this, add the following to your settings.json:
{
"python.testing.pytestArgs": [
"--auto-last-failed-skip-vscode",
]
}
Metadata
Release files for pytest-lf-skip 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_lf_skip-1.2.1.tar.gz | 85.2 kB | Without provenance | Details for pytest_lf_skip-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_lf_skip-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for pytest_lf_skip-1.2.1-py3-none-any.whl |
Total release size: 91.6 kB
Release files / pytest_lf_skip-1.2.1.tar.gz
| Download URL | pytest_lf_skip-1.2.1.tar.gz |
|---|---|
| Size | 85.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb55c5c60b9f033cc8df2b13ff8ca18d51aa0b5ba602486ecbdd50cf632ee1d0
|
|
BLAKE2b-256 checksum How to use checksums |
b4cc7d5ceafc073ac4543fa6e02d55d0e2c20ec139513aab5de871edeb159f36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pytest_lf_skip-1.2.1-py3-none-any.whl
| Download URL | pytest_lf_skip-1.2.1-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62decc685a7b255f8495cde2bb1823f3fa9acf2a5717e97b335159fa62943d68
|
|
BLAKE2b-256 checksum How to use checksums |
56b3cad13857cbc45cca93f406aa125297fe575ae9d3d27e387f56d82e5c1f06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for pytest-lf-skip 1.2.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.