Skip to content

Commit

Permalink
add mypy and pylint to the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonEhrig committed Feb 12, 2024
1 parent 5cf7e4a commit 2cfb8c5
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: lint-code
on: [push, pull_request]
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
run: |
mypy bashi
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
run: |
pylint bashi

0 comments on commit 2cfb8c5

Please sign in to comment.