Skip to content

Commit

Permalink
馃毃(pylint) update PYTHONPATH to fix import issue
Browse files Browse the repository at this point in the history
Add the env variable PYTHONPATH to circleci config to allow pylint
to find some models, avoiding crashes

pylint-dev/pylint-django#233
  • Loading branch information
samy-aitouakli-polyconseil authored and samy-aitouakli committed Aug 18, 2023
1 parent 4b5e16e commit 798d374
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ jobs:
lint-back:
docker:
- image: cimg/python:3.10
environment:
PYTHONPATH: /home/circleci/joanie/src/backend:/home/circleci/joanie/src/backend/joanie
working_directory: ~/joanie/src/backend
steps:
- checkout:
Expand Down
2 changes: 1 addition & 1 deletion env.d/development/common
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DJANGO_SETTINGS_MODULE=joanie.settings
DJANGO_SUPERUSER_PASSWORD=admin

# Python
PYTHONPATH=/app/src/backend
PYTHONPATH=/app:/app/joanie

# LMS BACKENDS
# OpenEdX
Expand Down

0 comments on commit 798d374

Please sign in to comment.