Skip to content

Commit 8c015d3

Browse files
comment out reporting
1 parent b99269a commit 8c015d3

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
pip install pytest-cov django
3131
pytest --cov=./ --cov-report=xml
3232
33-
- name: Report test coverage to DeepSource
34-
run: |
35-
curl https://deepsource.io/cli | sh
36-
./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
37-
./bin/deepsource report --analyzer test-coverage --key javascript --value-file ./coverage.xml
33+
# - name: Report test coverage to DeepSource
34+
# run: |
35+
# curl https://deepsource.io/cli | sh
36+
# ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
37+
# ./bin/deepsource report --analyzer test-coverage --key javascript --value-file ./coverage.xml

assignment.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import hashlib
2+
13
FIRST = [1, 2, 3]
24
SECOND = [1, 2, 3]
35
p = [1, 2, 3]
@@ -22,10 +24,19 @@ def tested_foo():
2224
return 5
2325

2426

25-
def untested_foo():
27+
def print_new_lines():
2628
print("New line 4")
2729
print("New line 5")
2830
print("New line 6")
2931
print("New line 8")
3032
print("New line 9")
3133
print("New line 10")
34+
35+
def compute_file_hashes(files=[], hash_algorithm=hashlib.md5) -> dict:
36+
hashes = dict()
37+
for file in files:
38+
f = open(file)
39+
hashed = hash_algorithm(f.read())
40+
hashes[file] = hashed
41+
42+
return hashes

0 commit comments

Comments
 (0)