Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit b5638f0

Browse files
Adição de tarefas de lint por projeto
Remoção de comentários dos arquivos de pylint
1 parent 793f2a3 commit b5638f0

File tree

8 files changed

+150
-18
lines changed

8 files changed

+150
-18
lines changed

.github/workflows/lambda_api_pylint.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on: [ push ]
1717

1818
jobs:
1919
setup-environment:
20-
name: Setup deployment environment (Ubuntu 18.04 - Python 3.x)
20+
name: Lambda API - Setup deployment environment (Ubuntu 18.04 - Python 3.x)
2121
runs-on: ubuntu-18.04
2222
strategy:
2323
matrix:
@@ -31,7 +31,7 @@ jobs:
3131
python-version: ${{ matrix.python-version }}
3232
architecture: x64
3333
setup-project:
34-
name: Setup project (Ubuntu 18.04 - Python 3.x)
34+
name: Lambda API - Setup project (Ubuntu 18.04 - Python 3.x)
3535
runs-on: ubuntu-18.04
3636
strategy:
3737
matrix:
@@ -50,7 +50,7 @@ jobs:
5050
python -m pip install -r ./examples/lambda_api/requirements.txt -t .
5151
python -m pip install -r ./examples/lambda_api/requirements-vendor.txt -t .
5252
pylint:
53-
name: Setup pylint (Ubuntu 18.04)
53+
name: Lambda API - Setup pylint (Ubuntu 18.04)
5454
runs-on: ubuntu-18.04
5555
strategy:
5656
matrix:
@@ -69,6 +69,4 @@ jobs:
6969
- name: Execute pylint
7070
run: |
7171
cd ./examples/lambda_api
72-
# pylint ./app.py ./lambda_app ./tests/unit ./tests/integration ./tests/component
73-
# pylint ./app.py ./boot.py ./flambda_app
7472
./scripts/pylint.sh
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Summary:
2+
# Execute the pylint analysis on code
3+
# Read here for mode info: https://pylint.pycqa.org/en/latest/ and https://www.python.org/dev/peps/pep-0008/
4+
5+
name: Execute the pylint analysis
6+
7+
#on:
8+
# # There are several ways to trigger Github actions - See https://help.github.com/en/actions/reference/events-that-trigger-workflows#example-using-a-single-event for a comprehensive list:
9+
# # - "push": Triggers each time a commit is pushed
10+
# # - "pull_request": Triggers each time a commit is pushed within a pull request, it makes it much easier to write comments within the PR, but it suffers some strong limitations:
11+
# # - There is no way to trigger when a PR is merged into another - See https://github.community/t/pull-request-action-does-not-run-on-merge/16092?u=vadorequest
12+
# # - It won't trigger when the PR is conflicting with its base branch - See https://github.community/t/run-actions-on-pull-requests-with-merge-conflicts/17104/2?u=vadorequest
13+
# push: # Triggers on each pushed commit
14+
# branches:
15+
# - 'master'
16+
on: [ push ]
17+
18+
jobs:
19+
setup-environment:
20+
name: Lambda API RESTful - Setup deployment environment (Ubuntu 18.04 - Python 3.x)
21+
runs-on: ubuntu-18.04
22+
strategy:
23+
matrix:
24+
# python-version: [ "3.8", "3.9" ]
25+
python-version: [ "3.8" ]
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
architecture: x64
33+
setup-project:
34+
name: Lambda API RESTful - Setup project (Ubuntu 18.04 - Python 3.x)
35+
runs-on: ubuntu-18.04
36+
strategy:
37+
matrix:
38+
python-version: [ "3.8" ]
39+
needs: setup-environment
40+
steps:
41+
- uses: actions/checkout@v2
42+
- name: Set up Python ${{ matrix.python-version }}
43+
uses: actions/setup-python@v2
44+
with:
45+
python-version: ${{ matrix.python-version }}
46+
architecture: x64
47+
- name: Set up requirements ${{ matrix.python-version }}
48+
run: |
49+
python -m pip install --upgrade pip
50+
python -m pip install -r ./examples/lambda_api_restful/requirements.txt -t .
51+
python -m pip install -r ./examples/lambda_api_restful/requirements-vendor.txt -t .
52+
pylint:
53+
name: Lambda API RESTful - Setup pylint (Ubuntu 18.04)
54+
runs-on: ubuntu-18.04
55+
strategy:
56+
matrix:
57+
python-version: [ "3.8" ]
58+
needs: setup-project
59+
steps:
60+
- uses: actions/checkout@v2
61+
- name: Set up Python ${{ matrix.python-version }}
62+
uses: actions/setup-python@v2
63+
with:
64+
python-version: ${{ matrix.python-version }}
65+
architecture: x64
66+
- name: Install pylint
67+
run: |
68+
pip install pylint
69+
- name: Execute pylint
70+
run: |
71+
cd ./examples/lambda_api_restful
72+
./scripts/pylint.sh
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Summary:
2+
# Execute the pylint analysis on code
3+
# Read here for mode info: https://pylint.pycqa.org/en/latest/ and https://www.python.org/dev/peps/pep-0008/
4+
5+
name: Execute the pylint analysis
6+
7+
#on:
8+
# # There are several ways to trigger Github actions - See https://help.github.com/en/actions/reference/events-that-trigger-workflows#example-using-a-single-event for a comprehensive list:
9+
# # - "push": Triggers each time a commit is pushed
10+
# # - "pull_request": Triggers each time a commit is pushed within a pull request, it makes it much easier to write comments within the PR, but it suffers some strong limitations:
11+
# # - There is no way to trigger when a PR is merged into another - See https://github.community/t/pull-request-action-does-not-run-on-merge/16092?u=vadorequest
12+
# # - It won't trigger when the PR is conflicting with its base branch - See https://github.community/t/run-actions-on-pull-requests-with-merge-conflicts/17104/2?u=vadorequest
13+
# push: # Triggers on each pushed commit
14+
# branches:
15+
# - 'master'
16+
on: [ push ]
17+
18+
jobs:
19+
setup-environment:
20+
name: Lambda SQS Light - Setup deployment environment (Ubuntu 18.04 - Python 3.x)
21+
runs-on: ubuntu-18.04
22+
strategy:
23+
matrix:
24+
# python-version: [ "3.8", "3.9" ]
25+
python-version: [ "3.8" ]
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
architecture: x64
33+
setup-project:
34+
name: Lambda SQS Light - Setup project (Ubuntu 18.04 - Python 3.x)
35+
runs-on: ubuntu-18.04
36+
strategy:
37+
matrix:
38+
python-version: [ "3.8" ]
39+
needs: setup-environment
40+
steps:
41+
- uses: actions/checkout@v2
42+
- name: Set up Python ${{ matrix.python-version }}
43+
uses: actions/setup-python@v2
44+
with:
45+
python-version: ${{ matrix.python-version }}
46+
architecture: x64
47+
- name: Set up requirements ${{ matrix.python-version }}
48+
run: |
49+
python -m pip install --upgrade pip
50+
python -m pip install -r ./examples/lambda_sqs_light/requirements.txt -t .
51+
python -m pip install -r ./examples/lambda_sqs_light/requirements-vendor.txt -t .
52+
pylint:
53+
name: Lambda SQS Light - Setup pylint (Ubuntu 18.04)
54+
runs-on: ubuntu-18.04
55+
strategy:
56+
matrix:
57+
python-version: [ "3.8" ]
58+
needs: setup-project
59+
steps:
60+
- uses: actions/checkout@v2
61+
- name: Set up Python ${{ matrix.python-version }}
62+
uses: actions/setup-python@v2
63+
with:
64+
python-version: ${{ matrix.python-version }}
65+
architecture: x64
66+
- name: Install pylint
67+
run: |
68+
pip install pylint
69+
- name: Execute pylint
70+
run: |
71+
cd ./examples/lambda_sqs_light
72+
./scripts/pylint.sh

.github/workflows/lambda_sqs_pylint.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on: [ push ]
1717

1818
jobs:
1919
setup-environment:
20-
name: Setup deployment environment (Ubuntu 18.04 - Python 3.x)
20+
name: Lambda SQS - Setup deployment environment (Ubuntu 18.04 - Python 3.x)
2121
runs-on: ubuntu-18.04
2222
strategy:
2323
matrix:
@@ -31,7 +31,7 @@ jobs:
3131
python-version: ${{ matrix.python-version }}
3232
architecture: x64
3333
setup-project:
34-
name: Setup project (Ubuntu 18.04 - Python 3.x)
34+
name: Lambda SQS - Setup project (Ubuntu 18.04 - Python 3.x)
3535
runs-on: ubuntu-18.04
3636
strategy:
3737
matrix:
@@ -50,7 +50,7 @@ jobs:
5050
python -m pip install -r ./examples/lambda_sqs/requirements.txt -t .
5151
python -m pip install -r ./examples/lambda_sqs/requirements-vendor.txt -t .
5252
pylint:
53-
name: Setup pylint (Ubuntu 18.04)
53+
name: Lambda SQS - Setup pylint (Ubuntu 18.04)
5454
runs-on: ubuntu-18.04
5555
strategy:
5656
matrix:
@@ -69,6 +69,4 @@ jobs:
6969
- name: Execute pylint
7070
run: |
7171
cd ./examples/lambda_sqs
72-
# pylint ./app.py ./lambda_app ./tests/unit ./tests/integration ./tests/component
73-
# pylint ./app.py ./boot.py ./flambda_app
7472
./scripts/pylint.sh

examples/lambda_api/.github/workflows/pylint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,4 @@ jobs:
6868
pip install pylint
6969
- name: Execute pylint
7070
run: |
71-
# pylint ./app.py ./flambda_app ./tests/unit ./tests/integration ./tests/component
72-
# pylint ./app.py ./boot.py ./fflambda_app
7371
./scripts/pylint.sh

examples/lambda_api_restful/.github/workflows/pylint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,4 @@ jobs:
6868
pip install pylint
6969
- name: Execute pylint
7070
run: |
71-
# pylint ./app.py ./lambda_app ./tests/unit ./tests/integration ./tests/component
72-
# pylint ./app.py ./boot.py ./flambda_app
7371
./scripts/pylint.sh

examples/lambda_sqs/.github/workflows/pylint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,4 @@ jobs:
6868
pip install pylint
6969
- name: Execute pylint
7070
run: |
71-
# pylint ./app.py ./lambda_app ./tests/unit ./tests/integration ./tests/component
72-
# pylint ./app.py ./boot.py ./flambda_app
7371
./scripts/pylint.sh

examples/lambda_sqs_light/.github/workflows/pylint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,4 @@ jobs:
6868
pip install pylint
6969
- name: Execute pylint
7070
run: |
71-
# pylint ./app.py ./lambda_app ./tests/unit ./tests/integration ./tests/component
72-
# pylint ./app.py ./boot.py ./flambda_app
7371
./scripts/pylint.sh

0 commit comments

Comments
 (0)