← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~cjwatson/launchpad:pre-commit-lp-lint-doctest into launchpad:master

 

Colin Watson has proposed merging ~cjwatson/launchpad:pre-commit-lp-lint-doctest into launchpad:master.

Commit message:
Enforce lp-lint-doctest in pre-commit

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/407526
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:pre-commit-lp-lint-doctest into launchpad:master.
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e6f8850..f7b7ef1 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -35,3 +35,9 @@ repos:
     hooks:
     -   id: eslint
         args: [--quiet]
+-   repo: https://git.launchpad.net/lp-lint-doctest
+    rev: '0.3'
+    hooks:
+    -   id: lp-lint-doctest
+        args: [--allow-option-flag, IGNORE_EXCEPTION_MODULE_IN_PYTHON2]
+        exclude: ^doc/.*|.*/testfiles/.*|bingsearchservice-mapping\.txt