Skip to content

Commit

Permalink
.github/workflows/main: run pylint on all api sub-modules
Browse files Browse the repository at this point in the history
Add `--extension-pkg-whitelist=pydantic` flag to `pylint`
command to load cython library for the below error:
```
api/config.py:8:0: E0611: No name 'EmailStr' in module 'pydantic' (no-name-in-module)
```
Reference link for adding the flag:
pydantic/pydantic#992

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia authored and JenySadadia committed Oct 16, 2024
1 parent 4e0235d commit 9c85b67
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,7 @@ jobs:
- name: Run pylint
run: |
docker-compose -f test-docker-compose.yaml exec -T test pylint api.auth
docker-compose -f test-docker-compose.yaml exec -T test pylint api.db
docker-compose -f test-docker-compose.yaml exec -T test pylint api.main
docker-compose -f test-docker-compose.yaml exec -T test pylint api.models
docker-compose -f test-docker-compose.yaml exec -T test pylint api.pubsub
docker-compose -f test-docker-compose.yaml exec -T test pylint api.user_manager
docker-compose -f test-docker-compose.yaml exec -T test pylint --extension-pkg-whitelist=pydantic api/
docker-compose -f test-docker-compose.yaml exec -T test pylint tests/unit_tests
docker-compose -f test-docker-compose.yaml exec -T test pylint tests/e2e_tests
Expand Down

0 comments on commit 9c85b67

Please sign in to comment.