pytest-diff-selector (pypi): Get tests affected by code changes (using git)
Keywords: pytest|git