Added pyright conf, upfated readme, classe exception added

This commit is contained in:
itdominator 2023-08-22 20:24:08 -05:00
parent ee3e042b1b
commit 64514b04af
4 changed files with 33 additions and 0 deletions

View File

@ -7,6 +7,9 @@ SolarFM is a Gtk+ Python file manager.
Additionally, if not building a .deb then just move the contents of user_config to their respective folders.
Copy the share/solarfm folder to your user .config/ directory too.
`pyrightconfig.json`
<p>The pyrightconfig file needs to stay on same level as the .git folders in order to have settings detected when using pyright with lsp functionality.</p>
<h6>Install Setup</h6>
```
sudo apt-get install python3.8 python3-setproctitle python3-gi wget ffmpegthumbnailer steamcmd

11
pyrightconfig.json Normal file
View File

@ -0,0 +1,11 @@
{
"reportUndefinedVariable": false,
"reportUnusedVariable": false,
"reportUnusedImport": true,
"reportDuplicateImport": true,
"executionEnvironments": [
{
"root": "./src/versions/solarfm-0.0.1/solarfm"
}
]
}

View File

@ -0,0 +1,16 @@
#!/bin/bash
# . CONFIG.sh
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
function main() {
cd "$(dirname "")"
echo "Working Dir: " $(pwd)
python -m pyright --createstub solarfm
}
main "$@";

View File

@ -16,6 +16,9 @@ from core.controller import Controller
class ControllerStartException(Exception):
...
class Window(Gtk.ApplicationWindow):
"""docstring for Window."""