You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Closes#923
A little more involved than I thought.
- Needed to use `files: \.py$` in the hook to restrict it to commits that contain changes to Python files.
- Had to remove the `--cov` option to `pytest` defined in `pyproject.toml` as the use of coverage forces the
`--testmon-nocollect` option to be enabled which deactivates collection and writing of testmon data. Coverage is still
explicitly run under GitHub Actions though so we will still get the coverage reports there.
- Rejigged documentation recommending installation of all `dev`/`tests`/`docs` dependencies.
- Added note on how to setup `pytest-testmon` database locally to documentation.
Closes#923
A little more involved than I thought.
- Needed to use `files: \.py$` in the hook to restrict it to commits that contain changes to Python files.
- Had to remove the `--cov` option to `pytest` defined in `pyproject.toml` as the use of coverage forces the
`--testmon-nocollect` option to be enabled which deactivates collection and writing of testmon data. Coverage is still
explicitly run under GitHub Actions though so we will still get the coverage reports there.
- Rejigged documentation recommending installation of all `dev`/`tests`/`docs` dependencies.
- Added note on how to setup `pytest-testmon` database locally to documentation.
- `pytest` pre-commit hook is excluded from `pre-commit.ci` as tests are already run elsewhere on the whole suite.
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.The text was updated successfully, but these errors were encountered: