From 8112fa3564a345f19e40fd781cb32776ec7c0a41 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Sat, 28 Nov 2020 16:01:52 +0100
Subject: [PATCH] fix the config

---
 .codeclimate.yml     | 29 +++++++++++++++++++++++++++++
 tempsdb/database.pxd |  3 +++
 tempsdb/database.pyx |  4 ++++
 3 files changed, 36 insertions(+)
 create mode 100644 .codeclimate.yml
 create mode 100644 tempsdb/database.pxd
 create mode 100644 tempsdb/database.pyx

diff --git a/.codeclimate.yml b/.codeclimate.yml
new file mode 100644
index 0000000..e735803
--- /dev/null
+++ b/.codeclimate.yml
@@ -0,0 +1,29 @@
+engines:
+  duplication:
+    enabled: true
+    config:
+      languages:
+        python:
+
+  fixme:
+    enabled: true
+  markdownlint:
+    enabled: true
+  pep8:
+    enabled: true
+exclude_paths:
+  - tests/**
+  - docs/**
+ratings:
+  paths:
+    - smokclient/**
+checks:
+  argument-count:
+    config:
+      threshold: 15
+  method-complexity:
+    config:
+      threshold: 50
+  method-count:
+    config:
+      threshold: 85
diff --git a/tempsdb/database.pxd b/tempsdb/database.pxd
new file mode 100644
index 0000000..d0944e2
--- /dev/null
+++ b/tempsdb/database.pxd
@@ -0,0 +1,3 @@
+cdef class Database:
+    cdef:
+        int test
diff --git a/tempsdb/database.pyx b/tempsdb/database.pyx
new file mode 100644
index 0000000..f7665ed
--- /dev/null
+++ b/tempsdb/database.pyx
@@ -0,0 +1,4 @@
+cdef class Database:
+    def __init__(self, test: int):
+        self.test = test
+
-- 
GitLab