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:
parent
4c123d5d01
commit
8dc67c5bdd
2 changed files with 20 additions and 0 deletions
|
|
@ -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 --
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue