lagom.debug   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 2
eloc 10
dl 0
loc 19
ccs 6
cts 9
cp 0.6667
rs 10
c 0
b 0
f 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A get_build_info() 0 2 1
A get_commit_hash() 0 2 1
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