Skip to content

Commit

Permalink
add ruff and mypy github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
  • Loading branch information
seapagan committed Sep 7, 2024
1 parent 21117eb commit 14803cf
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Linting
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
22 changes: 22 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Type Checking

on: [push, pull_request, workflow_dispatch]

jobs:
mypy:
# uncomment the line before to disable this job if needed.
# if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create MyPy Cache Directory
run: mkdir -p ${{ runner.workspace }}/.mypy_cache
- name: Mypy
uses: jpetrucciani/mypy-check@master
with:
path: "."
mypy_flags:
"--install-types --non-interactive --config-file pyproject.toml
--ignore-missing-imports --strict"
requirements_file: "requirements-dev.txt"
python_version: "3.9"

0 comments on commit 14803cf

Please sign in to comment.