Update flake8.yml #4
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
# https://github.com/marketplace/actions/run-flake8-with-reviewdog | |
name: flake8 Lint | |
on: [push, pull_request] | |
jobs: | |
flake8-lint: | |
runs-on: ubuntu-latest | |
name: Lint | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v4 | |
- name: Set up Python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
# Install specific flake8 version (this step is not required. Default is "latest"). | |
- run: pip install flake8==6.0.0 | |
# Install flake8 extensions (this step is not required. Default is "None"). | |
- run: pip install flake8-docstrings flake8-simplify flake8-unused-arguments flake8-quotes | |
- name: flake8 Lint | |
uses: reviewdog/action-flake8@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |