isort #525
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: black | |
on: | |
push: | |
branches-ignore: | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Runs the workflow once per day at 3:15am | |
schedule: | |
- cron: '3 15 * * *' | |
jobs: | |
# Style checking | |
style_check: | |
name: Style and file check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install pre-commit | |
- name: Style and file check | |
run: | | |
pre-commit run --all-files --verbose --show-diff-on-failure |