File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed
Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change 1- # https://github.com/marketplace/actions/flake8-annotate-action
1+ # https://github.com/marketplace/actions/run- flake8-with-reviewdog
22
3- name : Flake8 Lint
4- " on " : ["push"]
3+ name : flake8 Lint
4+
5+ on : [push, pull_request]
56
67jobs :
7- flake8 :
8- name : Flake8 tests
8+ flake8-lint :
99 runs-on : ubuntu-latest
10+ name : Lint
1011 steps :
11- - uses : actions/checkout@master
12- - uses : gijswobben/flake8-action@main
12+ - name : Check out source repository
13+ uses : actions/checkout@v4
14+ - name : Set up Python environment
15+ uses : actions/setup-python@v5
16+ with :
17+ python-version : " 3.11"
18+ # Install specific flake8 version (this step is not required. Default is "latest").
19+ - run : pip install flake8==6.0.0
20+ # Install flake8 extensions (this step is not required. Default is "None").
21+ - run : pip install flake8-docstrings flake8-simplify flake8-unused-arguments flake8-quotes
22+ - name : flake8 Lint
23+ uses : reviewdog/action-flake8@v3
1324 with :
14- strict : true
15- strict_for : " E501"
16- not_strict_for : " E502,E503"
17- message_title : " Flake8 error found"
18- flake8_config : |
19- [flake8]
20- exclude = examples/ tests/
21- max-line-length = 120
22- extend-ignore =
23- # See https://github.com/PyCQA/pycodestyle/issues/373
24- E203,
25- additional_packages : pep8-naming==0.13.2 flake8-annotations==2.9.1 darglint==1.8.1 flake8-bugbear==22.10.27
25+ github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments