This repository was archived by the owner on Mar 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
[flake8]
2
2
filename =
3
- *.py
3
+ *.py,
4
+ *.pys
4
5
max-line-length = 120
5
6
extend-exclude =
6
7
venv/
Original file line number Diff line number Diff line change
1
+ ---
1
2
# This action is centrally managed in https://github.com/<organization>/.github/
2
3
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
3
4
# the above-mentioned repo.
4
5
6
+ # Lint python files with flake8.
7
+
5
8
name : flake8
6
9
7
10
on :
8
11
pull_request :
9
12
branches : [master, nightly]
10
13
types : [opened, synchronize, reopened]
11
14
15
+ concurrency :
16
+ group : ${{ github.workflow }}-${{ github.ref }}
17
+ cancel-in-progress : true
18
+
12
19
jobs :
13
20
flake8 :
14
21
runs-on : ubuntu-latest
23
30
24
31
- name : Install dependencies
25
32
run : |
26
- python -m pip install --upgrade pip setuptools flake8
33
+ # pin flake8 before v6.0.0 due to removal of support for type comments (required for Python 2.7 type hints)
34
+ python -m pip install --upgrade pip setuptools "flake8<6"
27
35
28
36
- name : Test with flake8
29
37
run : |
You can’t perform that action at this time.
0 commit comments