Skip to content

Commit b8fed1e

Browse files
committed
[manage_flask] Updated GHW actions
1 parent 951239c commit b8fed1e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/manage_flask_package_checker.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ on:
44
branches: [ master ]
55
paths:
66
- 'manage_commands/**'
7-
- 'tests/**'
87
pull_request:
98
branches: [ master ]
109
paths:
1110
- 'manage_commands/**'
12-
- 'tests/**'
1311
jobs:
1412
build:
1513
runs-on: ubuntu-latest
@@ -32,4 +30,4 @@ jobs:
3230
# stop the build if there are Python syntax errors or undefined names
3331
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3432
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide => strict 79
35-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=79 --statistics --max-doc-length 79
33+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=79 --statistics --max-doc-length 79

.github/workflows/manage_flask_python_checker.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ on:
44
branches: [ master ]
55
paths:
66
- 'manage_commands/**'
7-
- 'tests/**'
87
pull_request:
98
branches: [ master ]
109
paths:
1110
- 'manage_commands/**'
12-
- 'tests/**'
1311
jobs:
1412
build:
1513
runs-on: ubuntu-latest
@@ -19,13 +17,13 @@ jobs:
1917
id: long_line_checker
2018
run: |
2119
modules_ok=0
22-
modules=($(find manage_commands/ tests/ -type f -name '*.py' -exec echo '{}' \;))
20+
modules=($(find manage_commands/ -type f -name '*.py' -exec echo '{}' \;))
2321
for mod in "${modules[@]}"; do line_length=$(wc -L < "${mod}"); [[ $line_length -gt 80 ]] && modules_ok=1; done
2422
[[ $modules_ok -eq 0 ]] && echo ok || exit 1
2523
- name: Check max number of lines in modules
2624
id: num_line_checker
2725
run: |
2826
modules_ok=0
29-
modules=($(find manage_commands/ tests/ -type f -name '*.py' -exec echo '{}' \;))
27+
modules=($(find manage_commands/ -type f -name '*.py' -exec echo '{}' \;))
3028
for mod in "${modules[@]}"; do line_numbers=$(wc -l < "${mod}"); [[ $line_numbers -gt 300 ]] && modules_ok=1; done
31-
[[ $modules_ok -eq 0 ]] && echo ok || exit 1
29+
[[ $modules_ok -eq 0 ]] && echo ok || exit 1

0 commit comments

Comments
 (0)