From 84d67f4745ad17af3e257a3e31f51054ddd3ee2d Mon Sep 17 00:00:00 2001
From: collerek
Date: Fri, 29 Jan 2021 15:33:36 +0100
Subject: [PATCH 1/2] update workflow for code climate coverage
---
.github/workflows/test-package.yml | 4 ++++
README.md | 3 ---
docs/index.md | 3 ---
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml
index 3fe58f4..5b0ce2f 100644
--- a/.github/workflows/test-package.yml
+++ b/.github/workflows/test-package.yml
@@ -66,3 +66,7 @@ jobs:
- run: mypy --config-file mypy.ini ormar tests
- name: Upload coverage
uses: codecov/codecov-action@v1
+ - name: Test & publish code coverage
+ uses: paambaati/codeclimate-action@v2.7.5
+ env:
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_COVERAGE_TOKEN }}
diff --git a/README.md b/README.md
index 8804d8d..2a94149 100644
--- a/README.md
+++ b/README.md
@@ -13,9 +13,6 @@
-
-
-
### Overview
diff --git a/docs/index.md b/docs/index.md
index 8804d8d..2a94149 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -13,9 +13,6 @@
-
-
-
### Overview
From f09355c5d8a0300b7c79eb4444de32040ec50066 Mon Sep 17 00:00:00 2001
From: collerek
Date: Fri, 29 Jan 2021 15:45:51 +0100
Subject: [PATCH 2/2] add codeclimatconfig, set line length to 88
---
.codeclimate.yml | 11 +++++++++++
setup.cfg | 5 ++++-
2 files changed, 15 insertions(+), 1 deletion(-)
create mode 100644 .codeclimate.yml
diff --git a/.codeclimate.yml b/.codeclimate.yml
new file mode 100644
index 0000000..b62e2ab
--- /dev/null
+++ b/.codeclimate.yml
@@ -0,0 +1,11 @@
+version: "2"
+checks:
+ method-complexity:
+ config:
+ threshold: 8
+engines:
+ bandit:
+ enabled: true
+ checks:
+ assert_used:
+ enabled: false
diff --git a/setup.cfg b/setup.cfg
index 224a779..2861787 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,2 +1,5 @@
[metadata]
-description-file = README.md
\ No newline at end of file
+description-file = README.md
+
+[pep8]
+max-line-length = 88
\ No newline at end of file