Fixes an error when no config file present (assume default config) + tests #210
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: Reviewdog | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, review_requested, reopened] | |
jobs: | |
reviewdog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install | |
run: | | |
python -m pip install -U pip | |
pip install --progress-bar off -U .[checking] | |
- name: Apply formatters | |
run: | | |
pip install black blackdoc isort | |
black . | |
blackdoc . | |
isort . | |
- name: Reviewdog | |
uses: reviewdog/action-suggester@v1 | |
with: | |
tool_name: formatters | |
github_token: ${{ secrets.GITHUB_TOKEN }} |