Skip to content

refactor: add linting #3

refactor: add linting

refactor: add linting #3

Workflow file for this run

name: code-quality
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install dependencies
run: |
pip install ".[dev]"
pre-commit install
- name: What's in here?
run: ls -ahl
- name: run pre-commit
run: |
pre-commit run --all-files
if [ $(git status --porcelain | wc -l) -ne "0" ]; then; git --no-pager diff; (exit 1); fi