-
Notifications
You must be signed in to change notification settings - Fork 2
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
c292b0f
commit 70468ab
Showing
2 changed files
with
44 additions
and
42 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,44 @@ | ||
name: lint-code | ||
on: [push, pull_request_target] | ||
jobs: | ||
mypy-linter: | ||
name: run mypy linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.12" | ||
architecture: x64 | ||
- name: Install bashi | ||
run: | | ||
pip install . | ||
- name: Install mypy | ||
run: | | ||
pip install mypy | ||
- name: Run mypy | ||
uses: wearerequired/lint-action@v2 | ||
with: | ||
mypy: true | ||
|
||
pylint-linter: | ||
name: run pylint linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.12" | ||
architecture: x64 | ||
- name: Install bashi | ||
run: | | ||
pip install . | ||
- name: Install pylint | ||
run: | | ||
pip install pylint | ||
- name: Run pylint | ||
uses: wearerequired/lint-action@v2 | ||
with: | ||
pylint: true |
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