Once you have cloned the repository you can set up the environment as follows.
# this ensures the virtual environment is created in the project directory
poetry config --local virtualenvs.in-project true
# this sets the environment up with all the required dependencies
poetry install
Once opened do the following.
- Set the interpreter if not already detected (
namespace/.venv/bin/python
). - Mark
src
as source directory for the project.
The file at namespace/src/namespace/hello.py
should not have any inspection errors.
The file namespace/src/namespace/hello.py
has inspection errors, like shown here.
Cannot find reference 'core' in '__init__.py'
This is because PyCharm does not correctly detect namespace-core
in the active environment when the __init__.py
is
omitted in the namespace-core
and a source directory is marked in namespace
.