File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change 4
4
name : Python application
5
5
6
6
on :
7
- push :
8
- branches : [ "main" ]
7
+ push :
8
+ branches : [ "main" ]
9
9
10
10
permissions :
11
- contents : read
11
+ contents : read
12
12
13
13
jobs :
14
- build :
15
- runs-on : ubuntu-latest
16
-
17
- steps :
18
- - uses : actions/checkout@v4
19
- - name : Set up Python 3.10
20
- uses : actions/setup-python@v4
21
- with :
22
- python-version : " 3.10"
23
- - name : Lint with flake8
24
- run : |
25
- # stop the build if there are Python syntax errors or undefined names
26
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
27
- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
28
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
14
+ build :
15
+ runs-on : ubuntu-latest
29
16
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - name : Set up Python 3.10
20
+ uses : actions/setup-python@v4
21
+ with :
22
+ python-version : " 3.10"
23
+
24
+ - name : Lint with flake8
25
+ run : |
26
+ # stop the build if there are Python syntax errors or undefined names
27
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
28
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
29
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
You can’t perform that action at this time.
0 commit comments