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:

  1. I must be able to step debug it in vscode
  2. It has a bunch of unit tests using pytest
  3. I my select to debug a specific test from vscode tab and it must stop in breakpoints
  4. pylint must not show any false positives
  5. The test files must be in a different directory of the main module files.
  6. 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

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations