overtime chart #99
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: 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 |