From 3049f3dee31ca7f6253fad9f91f72648b3187987 Mon Sep 17 00:00:00 2001 From: James Turk Date: Fri, 26 Apr 2024 16:06:24 -0500 Subject: [PATCH] add linting --- .github/actions/lint.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/actions/lint.yml diff --git a/.github/actions/lint.yml b/.github/actions/lint.yml new file mode 100644 index 0000000..c438bb8 --- /dev/null +++ b/.github/actions/lint.yml @@ -0,0 +1,31 @@ +name: Python Linting + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.10 + + - name: Install Poetry + run: | + curl -sSL https://install.python-poetry.org | python - + - name: Install dependencies + run: poetry install + + - name: ruff + run: ruff src + + - name: mypy + run: mypy src