Added checklinks to tox and release.py

This commit is contained in:
Steffen Schroeder
2019-07-13 16:06:56 +02:00
parent 85288b5321
commit 1cecdf6619
3 changed files with 29 additions and 0 deletions

View File

@@ -79,12 +79,19 @@ def fix_formatting():
call(["pre-commit", "run", "--all-files"])
def check_links():
"""Runs sphinx-build to check links"""
print(f"{Fore.CYAN}[generate.check_links] {Fore.RESET}Checking links")
check_call(["tox", "-e", "docs-checklinks"])
def pre_release(version):
"""Generates new docs, release announcements and creates a local tag."""
announce(version)
regen()
changelog(version, write_out=True)
fix_formatting()
check_links()
msg = "Preparing release version {}".format(version)
check_call(["git", "commit", "-a", "-m", msg])