-
-
Notifications
You must be signed in to change notification settings - Fork 4
26 lines (23 loc) · 854 Bytes
/
flake8.yml
File metadata and controls
26 lines (23 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# cSpell: disable
# https://github.com/marketplace/actions/run-flake8-with-reviewdog
name: flake8 Lint
on: [push, pull_request]
jobs:
flake8-lint:
runs-on: ubuntu-latest
name: flake8 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 }}