Skip to content

Commit

Permalink
Added Linting Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkelshaw committed May 25, 2022
1 parent 0de5c44 commit 460af16
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run mypy / pylint

on:

push:
branches:
- main

pull_request:
branches:
- main


jobs:

linting:

runs-on: ubuntu-latest
steps:

- name: Checkout Code
uses: actions/[email protected]

- name: Install Python 3
uses: actions/[email protected]
with:
python-version: '3.6.8'

- name: Upgrade Pip :: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry==1.1.13
- name: Install Dependancies
run: poetry install

- name: Run mypy
run: poetry run mypy .

- name: Run pylint
run: poetry run pylint ./kolsol

0 comments on commit 460af16

Please sign in to comment.