We should add a local job to .pre-commit-config.yaml to run pytest on only the files that have been changed or affected by changes using pytest-testmon.
.pre-commit-config.yaml
- repo: local
hooks:
- id: pytest-testmon
args: ["--rcfile=.pylintrc"]
name: Pytest Monitor
entry: pytest
language: system
files: \.py$
pyproject.toml
Add pytest-testmon to the tests optional dependencies.
We should add a local job to
.pre-commit-config.yaml
to runpytest
on only the files that have been changed or affected by changes usingpytest-testmon
..pre-commit-config.yaml
pyproject.toml
Add
pytest-testmon
to thetests
optional dependencies.docs/contributing.md
Detail in the
docs/contributing.md
how to setup and use thepytest-testmon
database on initially cloning the repository..gitignore
Will probably have to ignore the
.testdatamon
from version control as it will be dependent on an individuals development stage.