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

Commit b5093f3

Browse files
Pylint e autopep para projetos;
Correção docker-composer;
1 parent 34958f3 commit b5093f3

File tree

28 files changed

+3873
-187
lines changed

28 files changed

+3873
-187
lines changed

.github/workflows/pylint.yml

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,42 +13,61 @@ name: Execute the pylint analysis
1313
# push: # Triggers on each pushed commit
1414
# branches:
1515
# - 'master'
16-
on: [push]
16+
on: [ push ]
1717

1818
jobs:
1919
setup-environment:
2020
name: Setup deployment environment (Ubuntu 18.04 - Python 3.x)
2121
runs-on: ubuntu-18.04
2222
strategy:
2323
matrix:
24-
python-version: [ "3.8", "3.9" ]
24+
# python-version: [ "3.8", "3.9" ]
25+
python-version: [ "3.8" ]
2526
steps:
2627
- uses: actions/checkout@v2
2728
- name: Set up Python ${{ matrix.python-version }}
2829
uses: actions/setup-python@v2
2930
with:
3031
python-version: ${{ matrix.python-version }}
3132
architecture: x64
32-
pylint:
33+
setup-project:
34+
name: Setup project (Ubuntu 18.04 - Python 3.x)
3335
runs-on: ubuntu-18.04
36+
strategy:
37+
matrix:
38+
python-version: [ "3.8" ]
3439
needs: setup-environment
3540
steps:
36-
- uses: actions/checkout@v2
37-
- name: Install pylint
38-
run: |
39-
python -m pip install --upgrade pip
40-
pip install pylint
41-
# todo: futuramente separar em mais passos (um para cada pasta)
42-
- name: Execute pylint
43-
run: |
44-
source ./scripts/variables.sh
45-
ROOT_DIR=$(pwd)/
46-
for example_path in "${arr[@]}"
47-
do
48-
echo "Pylint in ${example_path} ..."
49-
# change dir to enable the pylint to find the modules of the app
50-
cd ${example_path}
51-
echo "Current dir is..."
52-
echo $(pwd)
53-
pylint --rcfile ${ROOT_DIR}.pylintrc ./app.py ./lambda_app
54-
done
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 ./requirements.txt -t .
51+
python -m pip install -r ./requirements-vendor.txt -t .
52+
pylint:
53+
name: 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+
# pylint ./app.py ./lambda_app ./tests/unit ./tests/integration ./tests/component
72+
# pylint ./app.py ./boot.py ./flambda_app
73+
./scripts/pylint.sh

.pep8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pycodestyle]
2+
max_line_length = 120
3+
ignore = E501

0 commit comments

Comments
 (0)