Skip to content

estimates

estimates #97

Workflow file for this run

name: Enforce Black
on:
#triggers workflow on push to main or any PRs
push:
branches:
- main
pull_request:
types: [review_requested]
branches:
- "*"
jobs:
run-linters:
name: Set up linter
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install black
- name: Black
uses: wearerequired/lint-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
git_name: "Black formatter"
git_email: "[email protected]"
commit_message: "Fix code style issues with ${linter}"
black: true
auto_fix: true