project maintenance

This commit is contained in:
Manuel Barkhau 2020-08-26 21:49:01 +00:00
parent 78760f6324
commit ae35ae3c1c
11 changed files with 213 additions and 84 deletions

View file

@ -9,7 +9,6 @@ CLI module for PyCalVer.
Provided subcommands: show, test, init, bump
"""
import os
import sys
import typing as typ
import logging
@ -25,16 +24,12 @@ from . import version
_VERBOSE = 0
# To enable pretty tracebacks:
# echo "export ENABLE_RICH_TB=1;" >> ~/.bashrc
if os.environ.get('ENABLE_RICH_TB') == '1':
try:
import rich.traceback
try:
import pretty_traceback
rich.traceback.install()
except ImportError:
# don't fail just because of missing dev library
pass
pretty_traceback.install()
except ImportError:
pass # no need to fail because of missing dev dependency
click.disable_unicode_literals_warning = True