Skip to content

Add pre-commit GitHub Actions #2

Add pre-commit GitHub Actions

Add pre-commit GitHub Actions #2

Workflow file for this run

name: pre-commit
on: [push, pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit autopep8 isort
- name: Run pre-commit
run: pre-commit run --all-files