Add a nox session for running xdoctest

- add a session "doctests" to nox
- run it as a pre-commit hook
This commit is contained in:
Alexander Hess 2020-10-27 17:56:38 +01:00
commit 8dc67c5bdd
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
2 changed files with 20 additions and 0 deletions

View file

@ -3,6 +3,12 @@ fail_fast: true
repos:
- repo: local
hooks:
- id: doctests
name: Run the xdoctests in the source files
entry: poetry run nox -s doctests --
language: system
stages: [commit, merge-commit]
types: [python]
- id: fix-branch-references
name: Check for wrong branch references
entry: poetry run nox -s fix-branch-references --