Closed vanolucas closed 6 months ago
Hi, @vanolucas. Looks like the problem is the app
task definition in pyproject.toml
. The sequence task that is part of the app
task is defined as [[tool.poe.tasks.lint.sequence]]
which should be [[tool.poe.tasks.app.sequence]]
. Changing that line should fix the issue immediately.
Error
The error occurs when running
poe lint
orpoe test
on a Python 3.12 app project.Steps to reproduce
Tested inside WSL2 on Windows 11 version 23H2.
Delete all existing
poetry-cookicutter
Docker containers and images.Clone the repo to a local folder:
Open it with VSCode:
Run VSCode command:
Dev Containers: Rebuild Without Cache and Reopen in Container
.The
poetry-cookiecutter
dev container builds and opens.Once completely initialized, open VSCode's bash terminal:
Terminal: Create New Terminal
.Scaffold a new Python 3.12
app
project using cruft:Choose the following cookiecutter values. Here reported in the generated
.cruft.json
:Exit the dev container and close VSCode.
Copy the scaffolded project to another local folder:
Navigate to the scaffolded project folder and open it with VSCode:
Build the project's dev container: run VSCode command:
Dev Containers: Rebuild Without Cache and Reopen in Container
.Once completely initialized, open VSCode's bash terminal:
Terminal: Create New Terminal
.Init a git repo:
Try to run code linting:
Try to run tests: