Загрузка...

3. Открываем python проект в Intellij IDEA (Open python project in Intellij IDEA).

63) in IntellijIdea - File - Settings - Plugins - Python (install) 64) in IntellijIdea - File - Open - directory "C:\work\Python\mypython" 65) Event Log - Python framework is detected - Configure 66) File - Project Structure - Project - Project SDK - Python 3.8 67) File - Project Structure - Modules for Test set "tests" directory for Source set "src\myPyLib" directory 68) Add Configuration -(right arrow) Python 69) Name "run" 70) Script path: "C:\work\Python\mypython\src\myPyLib" 71) Use SDK of module 72) in "C:\work\Python\mypython\src\myPyLib\__main__.py" change: from src.myPyLib import SayHello, CheckPandas SayHello("dfg") CheckPandas() 73) In IntellijIdea click Run "run" 74) Add Configuration -(right arrow) PythonTests 75) select pytests 76) Additional Arguments: --no-cov // for debug 77) set "C:\work\Python\mypython\tests" 78) Use SDK of module 79) Run PythonTests 80) File - Settings - Tools - Python Integrated Tools - Testing - Default test runner: pytest 81) Run by click 82) Edit Configuration - Templates - Python tests - pytest - Additional Arguments: --no-cov 83) Run by click 84) tox.ini comment "addopts = --cov=src.myPyLib --cov-append --cov-report term-missing" 85) pip.ini https://mothergeo-py.readthedocs.io/en/latest/development/how-to/alternate-pypi.html

Видео 3. Открываем python проект в Intellij IDEA (Open python project in Intellij IDEA). автора Кotlin Бенчмарки
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки