VSCode: how to structure a simple python module with tests, debugging and linting?
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 filesystem a project that is a simple Python module, just a bunch of *.py files together. My requisites are:
- I must be able to step debug it in vscode
- It has a bunch of unit tests using pytest
- I my select to debug a specific test from vscode tab and it must stop in breakpoints
- pylint must not show any false positives
- The test files must be in a different directory of the main module files.
- I must be able to run all the tests from the console
I may use another linter, even another test framework.
Nothing fancy, but I'm really having trouble to get it right.
from Recent Questions - Stack Overflow https://ift.tt/3t5q1k5
https://ift.tt/eA8V8J
Comments
Post a Comment