diff options
Diffstat (limited to 'python/fatcat_web/web_config.py')
-rw-r--r-- | python/fatcat_web/web_config.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/python/fatcat_web/web_config.py b/python/fatcat_web/web_config.py index 005986bd..55d233f3 100644 --- a/python/fatcat_web/web_config.py +++ b/python/fatcat_web/web_config.py @@ -42,14 +42,15 @@ def test_bool_str() -> None: assert bool_str("True") is True assert bool_str("FALSE") is False + def fetch_git_sha(): """ Get short commit id, runnable anywhere within a git repository. """ - return subprocess.check_output(['git', - 'rev-parse', - '--short', - 'HEAD']).decode('ascii').strip() + return ( + subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).decode("ascii").strip() + ) + class Config(object): GIT_REVISION = ( |