Skip to content

Commit 3034349

Browse files
authored
Merge pull request #8 from vroncevic/dev
[flask_func_struct] updated modes, docs, github workflows
2 parents 3cd401b + d95817d commit 3034349

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+98
-77
lines changed

.editorconfig

100755100644
File mode changed.

.github/workflows/flask_func_struct_package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ jobs:
2929
pip install flake8
3030
# stop the build if there are Python syntax errors or undefined names
3131
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
32-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
33-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide ===> strict 79
33+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=79 --statistics

.github/workflows/flask_func_struct_py_checker.yml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,38 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Check length of line in modules
13-
id: long_line_checker
12+
- name: Check length of line in app_server modules
13+
id: long_line_checker_app_server
1414
run: |
15-
echo Checking length of line in modules
15+
echo Checking length of line in app_server modules
1616
modules_ok=0
17-
modules=($(find . -type f -name '*.py' -exec echo '{}' \;))
17+
modules=($(find app_server/ -type f -name '*.py' -exec echo '{}' \;))
1818
for mod in "${modules[@]}"; do line_length=$(wc -L < "${mod}"); [[ $line_length -gt 80 ]] && modules_ok=1; done
1919
[[ $modules_ok -eq 0 ]] && echo ::set-output name=status::success || echo ::set-output name=status::failure
20-
- name: Check number of lines in modules
21-
id: num_line_checker
20+
- name: Check length of line in manage_commands modules
21+
id: long_line_checker_manage_commands
2222
run: |
23-
echo Checking number of lines in modules
23+
echo Checking length of line in manage_commands modules
2424
modules_ok=0
25-
modules=($(find . -type f -name '*.py' -exec echo '{}' \;))
25+
modules=($(find manage_commands/ -type f -name '*.py' -exec echo '{}' \;))
26+
for mod in "${modules[@]}"; do line_length=$(wc -L < "${mod}"); [[ $line_length -gt 80 ]] && modules_ok=1; done
27+
[[ $modules_ok -eq 0 ]] && echo ::set-output name=status::success || echo ::set-output name=status::failure
28+
- name: Check number of lines in app_server modules
29+
id: num_line_checker_app_server
30+
run: |
31+
echo Checking number of lines in app_server modules
32+
modules_ok=0
33+
modules=($(find app_server/ -type f -name '*.py' -exec echo '{}' \;))
34+
for mod in "${modules[@]}"; do line_numbers=$(wc -l < "${mod}"); [[ $line_numbers -gt 300 ]] && modules_ok=1; done
35+
[[ $modules_ok -eq 0 ]] && echo ::set-output name=status::success || echo ::set-output name=status::failure
36+
- name: Check number of lines in manage_commands modules
37+
id: num_line_checker_manage_commands
38+
run: |
39+
echo Checking number of lines in manage_commands modules
40+
modules_ok=0
41+
modules=($(find manage_commands/ -type f -name '*.py' -exec echo '{}' \;))
2642
for mod in "${modules[@]}"; do line_numbers=$(wc -l < "${mod}"); [[ $line_numbers -gt 300 ]] && modules_ok=1; done
2743
[[ $modules_ok -eq 0 ]] && echo ::set-output name=status::success || echo ::set-output name=status::failure
2844
- name: Check on failures
29-
if: steps.long_line_checker.outputs.status == 'failure' || steps.num_line_checker.outputs.status == 'failure'
45+
if: steps.long_line_checker_app_server.outputs.status == 'failure' || steps.long_line_checker_manage_commands.outputs.status == 'failure' || steps.num_line_checker_app_server.outouts.status == 'failure' || steps.num_line_checker_manage_commands.outputs.status == 'failure'
3046
run: exit 1

.gitignore

100755100644
File mode changed.

.readthedocs.yml

100755100644
File mode changed.

Dockerfile

100755100644
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018 Vladimir Roncevic <elektron.ronca@gmail.com>
1+
# Copyright 2017 Vladimir Roncevic <elektron.ronca@gmail.com>
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -15,7 +15,8 @@
1515

1616
FROM debian:10
1717
RUN apt-get update
18-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
18+
RUN DEBIAN_FRONTEND=noninteractive \
19+
apt-get install -yq --no-install-recommends \
1920
tree \
2021
htop \
2122
python \

LICENSE

100755100644
File mode changed.

README.md

100755100644
File mode changed.

_config.yml

100755100644
File mode changed.

app_server/.editorconfig

100755100644
File mode changed.

0 commit comments

Comments
 (0)