diff options
author | kotfu <kotfu@kotfu.net> | 2019-07-06 17:52:19 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-06 17:52:19 -0600 |
commit | 34975b52e769514b44ee8c13147a22961e68e7a7 (patch) | |
tree | fe93e18257514efc25e8539d5005af34ef4dcd3b /tasks.py | |
parent | e18013e7f6be6721531cde163ec4697eac247270 (diff) | |
parent | 0ae0567c48c0519cbecca8448df0caa32f530906 (diff) | |
download | cmd2-git-34975b52e769514b44ee8c13147a22961e68e7a7.tar.gz |
Merge pull request #712 from python-cmd2/docstructure
New Documentation Structure
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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)) |