-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from jhnnsrs/graphql-ws
GraphQL-WS Subprotocol Support Ruffed Up Mypyd And Blacked
- Loading branch information
Showing
95 changed files
with
5,310 additions
and
2,010 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
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,83 @@ | ||
name: Python Code Quality and Style Check | ||
on: | ||
push: | ||
branches: [master] | ||
paths: [rath/**, tests/**] | ||
pull_request: | ||
branches: [master] | ||
paths: [rath/**, tests/**] | ||
jobs: | ||
ruff: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.11"] | ||
poetry-version: [1.4] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: tlambert03/setup-qt-libs@v1 | ||
- name: Run image | ||
uses: abatilo/actions-poetry@v2.0.0 | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
- name: Run Poetry Install | ||
run: poetry install | ||
- name: Install Qt because Qt sucks with Poetry | ||
run: poetry run pip install pyqt5 | ||
- name: Run Ruff | ||
run: poetry run ruff . | ||
mypy: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.11"] | ||
poetry-version: [1.4] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: tlambert03/setup-qt-libs@v1 | ||
- name: Run image | ||
uses: abatilo/actions-poetry@v2.0.0 | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
- name: Run Poetry Install | ||
run: poetry install | ||
- name: Install Qt because Qt sucks with Poetry | ||
run: poetry run pip install pyqt5 | ||
- name: Run Mypy | ||
run: poetry run mypy . | ||
black: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.11"] | ||
poetry-version: [1.4] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: tlambert03/setup-qt-libs@v1 | ||
- name: Run image | ||
uses: abatilo/actions-poetry@v2.0.0 | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
- name: Run Poetry Install | ||
run: poetry install | ||
- name: Install Qt because Qt sucks with Poetry | ||
run: poetry run pip install pyqt5 | ||
- name: Run black | ||
run: poetry run black --check . | ||
|
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
Oops, something went wrong.