That was a little fussy :-)
This commit is contained in:
parent
19db834aa6
commit
0891a0ef87
@ -24,9 +24,9 @@ def is_module(obj):
|
|||||||
def fail_on_missing_dependency_hints(obj, lines):
|
def fail_on_missing_dependency_hints(obj, lines):
|
||||||
# We can automatically check in some cases if we forgot something
|
# We can automatically check in some cases if we forgot something
|
||||||
if issubclass(obj, ColorRangeModule):
|
if issubclass(obj, ColorRangeModule):
|
||||||
if all("`colour`" not in line for line in lines):
|
if all("colour" not in line for line in lines):
|
||||||
raise ValueError(">>> Module <{}> uses ColorRangeModule and should document it <<<\n"
|
raise ValueError(">>> Module <{}> uses ColorRangeModule and should document it <<<\n"
|
||||||
"> Requires the PyPI package `colour`".format(obj.__name__))
|
"> Requires the PyPI package ``colour``".format(obj.__name__))
|
||||||
|
|
||||||
|
|
||||||
def process_docstring(app, what, name, obj, options, lines):
|
def process_docstring(app, what, name, obj, options, lines):
|
||||||
|
Loading…
Reference in New Issue
Block a user