Isort #231
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pre-commit checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: ~ | |
workflow_dispatch: ~ | |
jobs: | |
pre-commit-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
cache: "pip" | |
- name: Pre-Commit Checks | |
run: | | |
python -m pip install --upgrade pip | |
pip install pre-commit | |
echo "Running pre-commit scans:" | |
# Run hooks individually, until we can run them all at once | |
# isort | |
pre-commit run isort --all-files | |
# pre-commit-hooks | |
pre-commit run check-yaml --all-files | |
pre-commit run end-of-file-fixer --all-files | |
pre-commit run trailing-whitespace --all-files | |
pre-commit run check-docstring-first --all-files | |
pre-commit run check-toml --all-files | |
pre-commit run check-added-large-files --all-files | |
pre-commit run requirements-txt-fixer --all-files | |
pre-commit run check-merge-conflict --all-files | |
pre-commit run debug-statements --all-files | |
pre-commit run pretty-format-json --all-files | |
shell: bash |