pytest-snob
A pytest plugin that only selects meaningful python tests to run.
Decision gist · record as of 2026-08-14
Yes, if you have a substantial test suite and want to reduce CI time. The plugin is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real problem—unnecessary test execution. The main caveat is ensuring snob_lib wheels are available for your platform; verify that before committing to it in your pipeline.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; snob_lib is a compiled Rust extension, so installation depends on pre-built wheels for your platform.
- Low friction to install; the package is a pure Python wheel with only two runtime dependencies (snob_lib and pytest).
- Actively maintained with recent releases and no archived status.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal legal constraints.
last release 2025-01-12 (579 days) · last repo commit 2026-06-28 · 69 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 92,881 downloads/mo, #13,416 on PyPI
Alternatives
Verify before relying
pip install pytest-snob
pytest --snob --commits origin/main..HEAD- Whether snob_lib wheels are available for all major platforms and Python versions you target.
- How the plugin handles monorepos or non-standard repository structures.
- Performance characteristics when analyzing large codebases with complex dependency graphs.
What it is and what it does
pytest-snob is a pytest plugin that integrates the snob static analysis library to filter which tests run based on the files changed in a commit range. Instead of running your entire test suite on every CI run, it analyzes your Python codebase's dependency graph to determine which tests could be affected by the changes, then runs only those. This saves time and resources by avoiding redundant test execution.
The plugin wraps snob, a Rust library compiled to Python via PyO3 and Maturin, which efficiently parses your project's import structure and tracks which modules depend on which files. You invoke it by passing commit ranges to pytest (e.g., `--commits origin/main..HEAD`), and it automatically selects the relevant test subset. It requires Python 3.9 or later and depends on pytest and snob_lib at runtime.
Use it for
- Speed up CI pipelines by running only tests affected by pull request changes instead of the full suite.
- Reduce local development feedback time by running only tests impacted by your uncommitted changes.
- Validate that a hotfix to a single module doesn't break dependent code without re-running unrelated tests.
- Optimize resource usage in resource-constrained CI environments by skipping unnecessary test execution.
- Implement regression test selection in large monorepos where full test runs are prohibitively slow.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have a substantial test suite and want to reduce CI time.
The plugin is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real problem—unnecessary test execution. The main caveat is ensuring snob_lib wheels are available for your platform; verify that before committing to it in your pipeline.
Install
pytest-snob on PyPI
Before you install
Low friction to install; the package is a pure Python wheel with only two runtime dependencies (snob_lib and pytest). Actively maintained with recent releases and no archived status.
Requires Python 3.9 or later; snob_lib is a compiled Rust extension, so installation depends on pre-built wheels for your platform.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal legal constraints.
Quickstart
pip install pytest-snob
pytest --snob --commits origin/main..HEAD
Verify before relying
- Whether snob_lib wheels are available for all major platforms and Python versions you target.
- How the plugin handles monorepos or non-standard repository structures.
- Performance characteristics when analyzing large codebases with complex dependency graphs.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagessnob_libpytest |
| Maintenance | Actively maintained 579 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 92,881 / month, #13,416 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Framework :: PytestLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3 |
Evidence: pytest_snob-0.1.14-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “commit-based test filtering”
- pytest-snobA pytest plugin that selects and runs only the tests affected by…
- python-semantic-releaseAutomates semantic versioning and release management for Python…
- git-cliffgit-cliff generates changelog files from Git history using…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-picked · pytest-testmon · snob-lib · pytest-filter-subpackage · ignore-python · pytest-unused-fixtures · pytest-incremental · pytest-cagoule · maturin-import-hook · pytest-regex