Skip to content

shorten

shorten #14

Workflow file for this run

name: "Lint"
on:
pull_request:
push:
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: ShellCheck
uses: ludeeus/action-shellcheck@master
- name: Pylint
run: |
pip install -r requirements-dev.txt
pylint handle.py
- name: Black
uses: psf/black@stable
- name: Run mypy
uses: sasanquaneuf/mypy-github-action@releases/v1
with:
checkName: 'lint' # NOTE: this needs to be the same as the job name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Prettify code
uses: creyD/[email protected]
with:
prettier_options: --write **/*.md