Added pyright conf, upfated readme, classe exception added
This commit is contained in:
parent
ee3e042b1b
commit
64514b04af
@ -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.
|
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.
|
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>
|
<h6>Install Setup</h6>
|
||||||
```
|
```
|
||||||
sudo apt-get install python3.8 python3-setproctitle python3-gi wget ffmpegthumbnailer steamcmd
|
sudo apt-get install python3.8 python3-setproctitle python3-gi wget ffmpegthumbnailer steamcmd
|
||||||
|
11
pyrightconfig.json
Normal file
11
pyrightconfig.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"reportUndefinedVariable": false,
|
||||||
|
"reportUnusedVariable": false,
|
||||||
|
"reportUnusedImport": true,
|
||||||
|
"reportDuplicateImport": true,
|
||||||
|
"executionEnvironments": [
|
||||||
|
{
|
||||||
|
"root": "./src/versions/solarfm-0.0.1/solarfm"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
16
src/versions/solarfm-0.0.1/create-stubs.sh
Normal file
16
src/versions/solarfm-0.0.1/create-stubs.sh
Normal 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 "$@";
|
@ -16,6 +16,9 @@ from core.controller import Controller
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class ControllerStartException(Exception):
|
||||||
|
...
|
||||||
|
|
||||||
|
|
||||||
class Window(Gtk.ApplicationWindow):
|
class Window(Gtk.ApplicationWindow):
|
||||||
"""docstring for Window."""
|
"""docstring for Window."""
|
||||||
|
Loading…
Reference in New Issue
Block a user