Skip to content

create github actions #1

create github actions

create github actions #1

Workflow file for this run

name: Lint Application
on:
pull_request:
push:
branches:
- main
- test-me-*
workflow_dispatch:
jobs:
lint_app:
name: 🧽 Lint and Typecheck Application
runs-on: ubuntu-latest
steps:
- name: 🛎 Checkout
uses: actions/checkout@v3
- name: 🐍 Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: pip
- name: 🚧 Install Dependencies
run: |
python -m pip install \
add-trailing-comma \
autopep8 \
flake8 \
mypy \
pyupgrade
reorder-python-imports \
- run: python -m autopep8 --exit-code --aggressive --aggressive --in-place $(git ls-files -- '*.py')
- run: python -m flake8 $(git ls-files -- '*.py')
- run: python -m mypy --ignore-missing-imports --scripts-are-modules $(git ls-files -- '*.py')
- run: python -m pyupgrade --py37-plus $(git ls-files -- '*.py')
- run: add-trailing-comma --py36-plus $(git ls-files -- '*.py'
- run: reorder-python-imports --py37-plus $(git ls-files -- '*.py')