Removed duplicate line in init #29
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: Format | |
on: | |
push: | |
branches: [main] | |
tags: [v*] | |
pull_request: | |
jobs: | |
format: | |
name: "Format Check" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install black | |
run: | | |
python -m pip install --upgrade pip | |
pip install black | |
- name: Format code with black | |
run: | | |
black . --check | |
- name: Suggest formatting changes | |
uses: reviewdog/action-suggester@v1 | |
if: github.event_name == 'pull_request' | |
with: | |
tool_name: black | |
fail_on_error: true |