Skip to content

Commit 9b3f55b

Browse files
authored
Merge pull request #16 from vroncevic/dev
[flask_func_struct] refactor done: removed ORM test, codecov, run_test, updated manager, GH issue templates, PR template, GHW actions, Dockerfile, docs
2 parents bb09547 + 52589cd commit 9b3f55b

Some content is hidden

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

73 files changed

+391
-1286
lines changed

.circleci/config.yml

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

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[**.py]
1+
[**.*]
22
indent_style = tab
33
tab_width = 4

.github/ISSUE_TEMPLATE/flask_func_struct_bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Bug report
2+
name: 🐛 Bug report
33
about: Create a report to help us improve
44
title: "[flask_func_struct]"
55
labels: bug

.github/ISSUE_TEMPLATE/flask_func_struct_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: "[flask_func_struct]"
55
labels: enhancement

.github/PULL_REQUEST_TEMPLATE/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Changes/Fixes # .
1+
🔥 Changes/Fixes # .
22

33
Changes proposed in this pull requests
44

.github/workflows/flask_func_struct_docker_checker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
16-
- name: Build Docker image
16+
- name: build docker image
1717
id: docker_checker
1818
run: |
1919
echo Building Docker image
2020
build_transcript=$(docker build . --file Dockerfile --tag flask_func_struct:latest)
2121
[[ "$build_transcript" == *"Successfully"* ]] && echo ::set-output name=status::success || echo ::set-output name=status::failure
22-
- name: Check on failures
22+
- name: check on failures
2323
if: steps.docker_checker.outputs.status == 'failure'
2424
run: exit 1

.github/workflows/flask_func_struct_package.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python package flask_func_structs
1+
name: flask_func_structs python package
22
on:
33
push:
44
branches: [ master ]
@@ -17,18 +17,18 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
python-version: [2.7, 3.6, 3.7, 3.8]
20+
python-version: [2.7]
2121
steps:
2222
- uses: actions/checkout@v2
23-
- name: Set up Python ${{ matrix.python-version }}
23+
- name: set up Python ${{ matrix.python-version }}
2424
uses: actions/setup-python@v1
2525
with:
2626
python-version: ${{ matrix.python-version }}
27-
- name: Install dependencies
27+
- name: install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
3030
pip install -r requirements.txt
31-
- name: Lint with flake8
31+
- name: lint with flake8
3232
run: |
3333
pip install flake8
3434
# stop the build if there are Python syntax errors or undefined names

.github/workflows/flask_func_struct_py_checker.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,38 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v2
20-
- name: Check length of line in app_server modules
20+
- name: check length of line in app_server modules
2121
id: long_line_checker_app_server
2222
run: |
2323
echo Checking length of line in app_server modules
2424
modules_ok=0
2525
modules=($(find app_server/ -type f -name '*.py' -exec echo '{}' \;))
2626
for mod in "${modules[@]}"; do line_length=$(wc -L < "${mod}"); [[ $line_length -gt 80 ]] && modules_ok=1; done
2727
[[ $modules_ok -eq 0 ]] && echo ::set-output name=status::success || echo ::set-output name=status::failure
28-
- name: Check length of line in manage_commands modules
28+
- name: check length of line in manage_commands modules
2929
id: long_line_checker_manage_commands
3030
run: |
3131
echo Checking length of line in manage_commands modules
3232
modules_ok=0
3333
modules=($(find manage_commands/ -type f -name '*.py' -exec echo '{}' \;))
3434
for mod in "${modules[@]}"; do line_length=$(wc -L < "${mod}"); [[ $line_length -gt 80 ]] && modules_ok=1; done
3535
[[ $modules_ok -eq 0 ]] && echo ::set-output name=status::success || echo ::set-output name=status::failure
36-
- name: Check number of lines in app_server modules
36+
- name: check number of lines in app_server modules
3737
id: num_line_checker_app_server
3838
run: |
3939
echo Checking number of lines in app_server modules
4040
modules_ok=0
4141
modules=($(find app_server/ -type f -name '*.py' -exec echo '{}' \;))
4242
for mod in "${modules[@]}"; do line_numbers=$(wc -l < "${mod}"); [[ $line_numbers -gt 300 ]] && modules_ok=1; done
4343
[[ $modules_ok -eq 0 ]] && echo ::set-output name=status::success || echo ::set-output name=status::failure
44-
- name: Check number of lines in manage_commands modules
44+
- name: check number of lines in manage_commands modules
4545
id: num_line_checker_manage_commands
4646
run: |
4747
echo Checking number of lines in manage_commands modules
4848
modules_ok=0
4949
modules=($(find manage_commands/ -type f -name '*.py' -exec echo '{}' \;))
5050
for mod in "${modules[@]}"; do line_numbers=$(wc -l < "${mod}"); [[ $line_numbers -gt 300 ]] && modules_ok=1; done
5151
[[ $modules_ok -eq 0 ]] && echo ::set-output name=status::success || echo ::set-output name=status::failure
52-
- name: Check on failures
52+
- name: check on failures
5353
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'
5454
run: exit 1
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: TOC Generator flask_func_struct
1+
name: flask_func_struct toc generator
22
on:
33
push:
44
paths:
55
- '**.md'
66
jobs:
77
generateTOC:
8-
name: TOC Generator
8+
name: flask_func_struct toc generator
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: technote-space/toc-generator@v2
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: Triage flask_func_struct
1+
name: flask_func_struct triage
22
on:
33
issues:
44
types: [opened]
55
jobs:
66
commentOnNewIssues:
7-
name: Comment On New Issues
7+
name: flask_func_struct triage
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
11-
- name: Comment On New Issues
11+
- name: flask_func_struct triage
1212
uses: actions/github@v1.0.0
1313
env:
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1515
with:
16-
args: comment "[flask_func_struct] should be supported for Python 2.7, 3.5, 3.6, 3.7, 3.8"
16+
args: comment "[flask_func_struct] should be supported for Python 2.7, 3.5, 3.6, 3.7, 3.8, 3.9"

0 commit comments

Comments
 (0)