File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ - id : docstr-coverage
2+ name : docstr-coverage
3+ entry : docstr-coverage
4+ require_serial : true
5+ language : python
6+ language_version : python3
7+ types_or : [cython, pyi, python]
8+ minimum_pre_commit_version : " 2.9.0"
9+ always_run : true
Original file line number Diff line number Diff line change @@ -170,6 +170,21 @@ class FooBarChild(FooBar):
170170 pass
171171```
172172
173+ #### Pre-commit hook
174+
175+ You can use ` docstr-coverage ` as a pre-commit hook by adding the following to your ` .pre-commit-config.yaml ` file:
176+
177+ To pass arguments to ` docstr-coverage ` , add a ` .docstr.yaml ` config (which is automatically picked up).
178+ This is preferrable over [ pre-commit args] ( https://pre-commit.com/#config-args ) ,
179+ as it facilitates the use of the same config in ci / pre-commit and manual runs.
180+
181+ ``` yaml
182+ - repo : https://github.com/HunterMcGushion/docstr_coverage
183+ rev : <most recent docstr-coverage release or commit sha>
184+ hooks :
185+ - id : docstr-coverage
186+ ` ` `
187+
173188#### Package in Your Project
174189
175190You can also use ` docstr-coverage` as a part of your project by importing it thusly.
You can’t perform that action at this time.
0 commit comments