lagom.debug.get_commit_hash()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.125

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
ccs 1
cts 2
cp 0.5
crap 1.125
1
"""Module for helping with debugging and issue logging"""
2
3 1
import os
4 1
from pathlib import Path
5
6 1
from lagom import version
7
8
9 1
def get_commit_hash():
10
    return "DISABLED_FOR_NOW"
11
12
13 1
def get_build_info():
14
    return {"version": version.__version__, "commit_hash": get_commit_hash()}
15
16
17 1
if __name__ == "__main__":
18
    print(f"Lagom version {version.__version__} commit {get_commit_hash()}")
19