-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
142 changed files
with
10,460 additions
and
6,125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.