diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 43a15f082..cf3f08025 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -78,23 +78,23 @@ jobs: # ./bin/deepsource report --analyzer test-coverage --key go --value-file ./go_coverage.out - # - name: Report test coverage to DeepSource enterprise-dev (python) - # run: | - # curl https://deepsource.io/cli | sh - # export DEEPSOURCE_DSN=$DEEPSOURCE_DSN_ENTERPRISE_DEV - # # create python artifact - # ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml - # # create another python artifact - # ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage2.xml - # # existing python artifact with same file so update only - # ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml + - name: Report test coverage to DeepSource enterprise-dev (python) + run: | + curl https://deepsource.io/cli | sh + export DEEPSOURCE_DSN=$DEEPSOURCE_DSN_ENTERPRISE_DEV + # create python artifact + ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml + # create another python artifact + ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage2.xml + # existing python artifact with same file so update only + ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml - # - name: Report test coverage to DeepSource enterprise-dev (go) - # if: github.event_name != 'pull_request' - # run: | - # curl https://deepsource.io/cli | sh - # export DEEPSOURCE_DSN=$DEEPSOURCE_DSN_ENTERPRISE_DEV - # # create go artifact - # ./bin/deepsource report --analyzer test-coverage --key go --value-file ./go_coverage.out + - name: Report test coverage to DeepSource enterprise-dev (go) + if: github.event_name != 'pull_request' + run: | + curl https://deepsource.io/cli | sh + export DEEPSOURCE_DSN=$DEEPSOURCE_DSN_ENTERPRISE_DEV + # create go artifact + ./bin/deepsource report --analyzer test-coverage --key go --value-file ./go_coverage.out diff --git a/assignment.py b/assignment.py index 95fe20932..06388fa6b 100644 --- a/assignment.py +++ b/assignment.py @@ -1,8 +1,21 @@ (*FIRST,) = [1, 2, 3] # documenting code no fungggg *FIRST, a, b = [1, 2, 3, 7] # documenting code no fuddddnffffff -a, b = [1, 8, 2, 3, 5, 6,7, 8, 9, 12, 88] # documenting code no fun hehehehehefffffddddd +a, b = [ + 1, + 8, + 2, + 3, + 5, + 6, + 7, + 8, + 9, + 12, + 88, +] # documenting code no fun hehehehehefffffddddd c = 1 + def not_covered(): - print("hellooooow") - pass + print("hellooooow") + pass diff --git a/demo_code.py b/demo_code.py index edd32a51b..f74550ead 100644 --- a/demo_code.py +++ b/demo_code.py @@ -3,8 +3,9 @@ import subprocess import ssl - -AWS_SECRET_KEY = "d6s$f9g!j8mg7hw?n&2ffffFdgsdgdddddsfddddddgfljwnfjsgsljfbjffffffkldslUwU" +AWS_SECRET_KEY = ( + "d6s$f9g!j8mg7hw?n&2ffffFdgsdgdddddsfddddddgfljwnfjsgsljfbjffffffkldslUwU" +) class BaseNumberGenerator: @@ -100,8 +101,9 @@ def tar_something(): def bad_isinstance(initial_condition, object, other_obj, foo, bar, baz): pass + def not_check(x): - if x in (1, 2 ,7,3): + if x in (1, 2, 7, 3): print("Yes") elif x != 2 or x != 3: print("also true") @@ -114,7 +116,8 @@ def not_check(x): elif x in (10, 20, 30): print("Why even?") - + + def check(x): if x in (1, 2, 3): print("Yes") diff --git a/django_issues.py b/django_issues.py index 8419fff5f..f04fa031f 100644 --- a/django_issues.py +++ b/django_issues.py @@ -4,7 +4,6 @@ from django.views.decorators.http import require_http_methods - @require_http_methods(["GET", "POST"]) # Not Sensitive?????jjjjjj def current_datetime(request): now = datetime.datetime.now() diff --git a/miscellaneous.py b/miscellaneous.py index 798ad1649..ef201aa9e 100644 --- a/miscellaneous.py +++ b/miscellaneous.py @@ -2,7 +2,7 @@ class Orange: - """Represents the fruit orange.. """ + """Represents the fruit orange..""" orange = "#FFA500"