From 25b6b5305b71840a3d671f11d31610bbf96063ba Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Fri, 26 Jul 2024 19:53:04 -0500 Subject: [PATCH] update readme --- README.md | 3 ++- pyrightconfig.json | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 pyrightconfig.json diff --git a/README.md b/README.md index 0ae0e44..6d2b8f3 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ A template project for Python with Gtk applications. * sqlmodel (SQL databases and is powered by Pydantic and SQLAlchemy) ### Note +* pyrightconfig.json can prompt IDEs that use pyright lsp on where imports are located- look at venvPath and venv. "venvPath" is parent path of "venv" where "venv" is just the name of the folder under the parent path that is the python created venv. * Move respetive sub folder content under user_config to the same places in Linux. Though, user/share/ can go to ~/.config folder if prefered. * In additiion, place the plugins folder in the same app folder you moved to /usr/share/ or ~/.config/ . There are a "\" strings and files that need to be set according to your app's name located at: @@ -21,4 +22,4 @@ There are a "\" strings and files that need to be set according to y For the user_config, after changing names and files, copy all content to their respective destinations. -The logic follows Debian Dpkg packaging and its placement logic. \ No newline at end of file +The logic follows Debian Dpkg packaging and its placement logic. diff --git a/pyrightconfig.json b/pyrightconfig.json new file mode 100644 index 0000000..4d8b8ec --- /dev/null +++ b/pyrightconfig.json @@ -0,0 +1,13 @@ +{ + "reportUndefinedVariable": false, + "reportUnusedVariable": false, + "reportUnusedImport": true, + "reportDuplicateImport": true, + "executionEnvironments": [ + { + "root": "./src/versions/solarfm-0.0.1/solarfm" + } + ], + "venvPath": ".", + "venv": ".venv" +}