Skip to content

Commit

Permalink
Initial Python (#22)
Browse files Browse the repository at this point in the history
* Migrated to python
  • Loading branch information
jochenchrist authored Jan 27, 2024
1 parent d6b0bac commit a6ad479
Show file tree
Hide file tree
Showing 142 changed files with 10,460 additions and 6,125 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = false
max_line_length = 100
tab_width = 2

[{*.py,*.pyw}]
indent_size = 4
max_line_length = 120
tab_width = 4
3 changes: 2 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
x
54 changes: 30 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
on:
push:
branches-ignore: ["python"]
branches: [ "main" ] # remove python, once merged
pull_request:
branches-ignore: ["python"]
branches: [ "main" ] # remove python, once merged

permissions:
contents: read

name: CI
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
fetch-depth: 1
- name: Use Go
uses: actions/setup-go@v4
with:
go-version: '~1.20'
- name: Test
run: go test
- name: Cache Static Code Analysis
uses: actions/cache@v3
with:
path: ${STATICCHECK_CACHE}
key: ${{ runner.os }}-staticcache
- name: Static Code Analysis
uses: dominikh/[email protected]
with:
version: "2023.1.6"
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -e '.[dev]'
pip install flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
# data contract resources are defined relative to tests
cd tests/
pytest
16 changes: 0 additions & 16 deletions .github/workflows/integration.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/release.yaml

This file was deleted.

Loading

0 comments on commit a6ad479

Please sign in to comment.