From 1f6da02144ba1947a7682b36f6e18d385ea45ab3 Mon Sep 17 00:00:00 2001
From: Tom Weber <tom@weber.codes>
Date: Sun, 1 Jan 2023 19:09:37 +0100
Subject: [PATCH] testing woodpecker

---
 .gitignore      |  1 +
 .woodpecker.yml | 43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)
 create mode 100644 .woodpecker.yml

diff --git a/.gitignore b/.gitignore
index 68bc17f..db8ba35 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@ __pycache__/
 # C extensions
 *.so
 
+.idea/
 # Distribution / packaging
 .Python
 build/
diff --git a/.woodpecker.yml b/.woodpecker.yml
new file mode 100644
index 0000000..74638b2
--- /dev/null
+++ b/.woodpecker.yml
@@ -0,0 +1,43 @@
+
+# This config shows how to handle Python-CI focusing on code quaility 
+# was taken from https://codeberg.org/sail.black/serial-sphinx/src/branch/main/.woodpecker.yml
+# check there for license information
+
+
+pipeline:
+  standardize: 
+    image: python:3.9-buster
+    when:
+      event: pull_request
+      branch: main
+    commands:
+      - python -m pip install --upgrade pip
+      - python -m pip install -r requirements.txt
+      - python -m pip install pylint flake8 mypy>=0.971
+      - python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
+      - mypy --strict serial_sphinx/
+      - python -m pylint -f parseable serial_sphinx/*.py 
+      
+  build:
+    image: python:${TAG}-buster
+    when:
+      event: pull_request
+      branch: main
+
+    commands:
+      - ls
+      - python -m venv venv 
+      - /bin/bash -c "source venv/bin/activate"
+      - python -m pip install --upgrade pip
+      - python -m pip install -r requirements.txt
+      - pytest tests/
+
+
+
+matrix:
+  TAG:
+    - 3.7
+    - 3.9
+    - 3.8
+    - 3.10
+