Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

make EXTERNAL_STORAGE_DRIVE lowercase #35

make EXTERNAL_STORAGE_DRIVE lowercase

make EXTERNAL_STORAGE_DRIVE lowercase #35

Workflow file for this run

---
name: Pre-commit checks
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v4
- name: set up python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: set PY
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- name: Cache pre-commit install
uses: actions/cache@v3
with:
path: |
${{ env.pythonLocation }}
~/.cache/pre-commit
key: |
pre-commit-${{ env.PY }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: install dependencies
run: pip install pre-commit
- name: Install pre-commit hooks
run: pre-commit install
# This will run on all files in the repo not just those that have been
# committed. Once formatting has been applied once globally, from then on
# the files being changed by pre-commit should be just those that are
# being committed - provided that people are using the pre-commit hook to
# format their code.
- name: run pre-commit
run: pre-commit run --all-files --color always