Skip to content

Commit 5016d3c

Browse files
authored
Merge pull request #33 from vroncevic/dev
[manage_flask] Refactor done based on Python 3.10+
2 parents 7e70943 + b8fed1e commit 5016d3c

File tree

107 files changed

+15674
-19208
lines changed

Some content is hidden

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

107 files changed

+15674
-19208
lines changed

.editorconfig

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitconfig

Lines changed: 0 additions & 1 deletion
This file was deleted.

.githooks/commit-msg

Lines changed: 0 additions & 11 deletions
This file was deleted.

.githooks/pre-commit

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/manage_flask_bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
name: 🐛 Bug report
3-
about: Create a report to help us improve
2+
name: Bug report
3+
about: Creates a report to help us improve
44
title: "[manage_flask]"
55
labels: bug
66
assignees: vroncevic

.github/ISSUE_TEMPLATE/manage_flask_feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: 💡 Feature request
2+
name: Feature request
33
about: Suggest an idea for this project
44
title: "[manage_flask]"
55
labels: enhancement
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
🔥 Changes/Fixes # .
1+
# Description
22

3-
Changes proposed in this pull requests
3+
Please include a summary of the changes and the related issue.
4+
Please also include relevant motivation and context.
5+
List any dependencies that are required for this change.
46

5-
-
7+
Fixes # (issue)
68

7-
-
9+
## Type of change
810

9-
-
11+
Please delete options that are not relevant.
1012

13+
- [ ] Bug fix (non-breaking change which fixes an issue)
14+
- [ ] New feature (non-breaking change which adds functionality)
15+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
16+
- [ ] This change requires a documentation update

.github/workflows/manage_flask_docker_checker.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/manage_flask_package_checker.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,21 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
16+
python-version: ['3.10']
1717
steps:
18-
- uses: actions/checkout@v2
19-
- name: set up python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v1
18+
- uses: actions/checkout@v4
19+
- name: Set up python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
2121
with:
2222
python-version: ${{ matrix.python-version }}
23-
- name: lint with flake8
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
- name: Lint with flake8
2428
run: |
2529
pip install flake8
2630
# stop the build if there are Python syntax errors or undefined names
2731
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 ==> strict 79
29-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=79 --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 --max-doc-length 79

.github/workflows/manage_flask_python_checker.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,18 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
16-
- name: check length of line in modules
15+
- uses: actions/checkout@v4
16+
- name: Check max length of lines in modules
1717
id: long_line_checker
1818
run: |
19-
echo Checking length of line in modules
2019
modules_ok=0
21-
modules=($(find . -type f -name '*.py' -exec echo '{}' \;))
20+
modules=($(find manage_commands/ -type f -name '*.py' -exec echo '{}' \;))
2221
for mod in "${modules[@]}"; do line_length=$(wc -L < "${mod}"); [[ $line_length -gt 80 ]] && modules_ok=1; done
23-
[[ $modules_ok -eq 0 ]] && echo ::set-output name=status::success || echo ::set-output name=status::failure
24-
- name: check number of lines in modules
22+
[[ $modules_ok -eq 0 ]] && echo ok || exit 1
23+
- name: Check max number of lines in modules
2524
id: num_line_checker
2625
run: |
27-
echo Checking number of lines in modules
2826
modules_ok=0
29-
modules=($(find . -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 ::set-output name=status::success || echo ::set-output name=status::failure
32-
- name: check on failures
33-
if: steps.long_line_checker.outputs.status == 'failure' || steps.num_line_checker.outputs.status == 'failure'
34-
run: exit 1
29+
[[ $modules_ok -eq 0 ]] && echo ok || exit 1

0 commit comments

Comments
 (0)