-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a79f7c
commit 2d639f8
Showing
2 changed files
with
54 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,54 @@ | ||
# This workflow runs flake8 with reviewdog. The documentation can be found below: | ||
# https://github.com/marketplace/actions/run-flake8-with-reviewdog | ||
# Flake8 is a Python linter that analyzes code and checks for programming and stylistic errors | ||
name: Flake8 Linter | ||
|
||
# This workflow acts only on pull requests | ||
on: pull_request | ||
|
||
jobs: | ||
|
||
setup: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.11", "3.12"] | ||
|
||
steps: | ||
- name: Check out source repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Python dependencies | ||
run: pip install -r python/requirements.txt | ||
|
||
ruff: | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
|
||
steps: | ||
- name: Run Ruff | ||
run: ruff check | ||
|
||
pyright-strict: | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
|
||
steps: | ||
- name: Run Pyright | ||
run: pyright | ||
|
||
pyright-loose: | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
|
||
steps: | ||
- name: Run Pyright | ||
run: | | ||
cd test | ||
pyright |