summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2019-07-06 17:52:19 -0600
committerGitHub <noreply@github.com>2019-07-06 17:52:19 -0600
commit34975b52e769514b44ee8c13147a22961e68e7a7 (patch)
treefe93e18257514efc25e8539d5005af34ef4dcd3b /tasks.py
parente18013e7f6be6721531cde163ec4697eac247270 (diff)
parent0ae0567c48c0519cbecca8448df0caa32f530906 (diff)
downloadcmd2-git-34975b52e769514b44ee8c13147a22961e68e7a7.tar.gz
Merge pull request #712 from python-cmd2/docstructure
New Documentation Structure
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tasks.py b/tasks.py
index c38419ec..b679e594 100644
--- a/tasks.py
+++ b/tasks.py
@@ -101,6 +101,12 @@ def docs(context, builder='html'):
context.run(cmdline)
namespace.add_task(docs)
+@invoke.task()
+def doc8(context):
+ "Check documentation with doc8"
+ context.run('doc8 docs --ignore-path docs/_build')
+namespace.add_task(doc8)
+
@invoke.task
def docs_clean(context):
"Remove rendered documentation"
@@ -193,7 +199,7 @@ def validatetag(context):
tag = result.stdout.rstrip()
# Validate that the Git tag appears to be a valid version number
- ver_regex = re.compile('(\d+)\.(\d+)\.(\d+)')
+ ver_regex = re.compile(r'(\d+)\.(\d+)\.(\d+)')
match = ver_regex.fullmatch(tag)
if match is None:
print('Tag {!r} does not appear to be a valid version number'.format(tag))