I'm having more trouble than I'd like to admit to structure a simple project in Python to develop using Visual Studio Code.
How should I structure in my file system a project that is a simple Python package with a few modules? Just a bunch of *.py files together. My requisites are:
I may use another linter, even another test framework.
Nothing fancy, but I'm really having trouble to get it right. I want to know:
pytest.ini
file?.env
file?launch.json
the debugger file config in vscode?Some years later, I now think that the best option is to use Poetry package and environment manager. You must start your projects just using poetry new <my-package>
that it will create the structure for you.
Now everything just works.