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

Commit 1a6a877

Browse files
Troca de diretório para que o pylint encontre os modulos
1 parent 5618596 commit 1a6a877

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pylint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ jobs:
4242
- name: Execute pylint
4343
run: |
4444
source ./scripts/variables.sh
45+
ROOT_DIR =$(pwd)
4546
for example_path in "${arr[@]}"
4647
do
4748
echo "Pylint in ${example_path} ..."
48-
pylint --rcfile ./.pylintrc ${example_path}/app.py ${example_path}/lambda_app
49+
# change dir to enable the pylint to find the modules of the app
50+
cd ${example_path}
51+
pylint --rcfile ${ROOT_DIR}.pylintrc app.py lambda_app
4952
done

0 commit comments

Comments
 (0)