Skip to content

black

black #788

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