-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
on pushes & PRs, lint using GitHub Actions 💚 [todo]
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 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,41 @@ | ||
name: lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: | ||
- '3' | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: setup Node v${{ matrix.python-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
|
||
- name: pip install | ||
run: pip install -r requirements.txt -r requirements-dev.txt | ||
|
||
- name: lint using ruff | ||
# uses: chartboost/ruff-action@v1 | ||
run: ruff check --format=github . | ||
|
||
- name: format using black | ||
run: | | ||
black -S --check --diff . | ||
- name: type-check using mypy | ||
run: | | ||
mypy . |