Configure modules for vscode

This commit is contained in:
2026-03-05 11:05:38 +01:00
parent 45df0b3cd4
commit 4be6dd8b84
5 changed files with 51 additions and 4 deletions

15
.editorconfig Normal file
View File

@@ -0,0 +1,15 @@
root = true
[*]
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
indent_style = space
insert_final_newline = true
indent_size = 2
[*.py]
indent_size = 4
[pyproject.toml]
indent_size = 4

14
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,14 @@
{
"recommendations": [
"ms-python.python",
"ms-python.debugpy",
"ms-python.vscode-pylance",
"ms-python.vscode-python-envs",
"ms-python.mypy-type-checker",
"charliermarsh.ruff",
"editorconfig.editorconfig",
"njpwerner.autodocstring",
"redhat.vscode-yaml",
"tamasfe.even-better-toml"
]
}

6
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"python.analysis.autoImportCompletions": true,
"python.analysis.extraPaths": [".venv/lib/python3.11/site-packages"],
"python.analysis.fixAll": ["source.unusedImports"],
"python.languageServer": "Pylance"
}

View File

@@ -6,14 +6,14 @@ from PyQt6.QtCore import Qt
from PyQt6.QtGui import QFontDatabase, QFont, QColor
from PyQt6.QtWidgets import QApplication, QMainWindow
from win11toast import toast
from win11toast import toast, notify
from slidergroovecolorstyle import ThinSubPageLineStyle, ThinAddPageLineStyle
# Compile resources.qrc into resources_rc.py
# rcc -g python resources.qrc -o resources_rc.py
import resources # This is generated from the .qrc file
import resources # This is generated from the .qrc file # noqa: F401
# À placer tout en haut, avant les imports PyQt6 si possible
if sys.platform.startswith('linux'):
@@ -96,7 +96,14 @@ class MainWindow(QMainWindow):
event.accept()
def connexion_btn_link(self):
toast('Hello Python🐍')
icon = {
'src': ':/assets/background.png',
'placement': 'appLogoOverride'
}
buttons = [
{'activationType': 'protocol', 'arguments': '', 'content': 'Entrer en jeu'},
]
toast('C\'est enfin à ton tour d\'entrer en jeu! 🎮🐍', app_id='LaTanière Launcher',buttons=buttons)
if __name__ == "__main__":

View File

@@ -7,3 +7,8 @@ requires-python = ">=3.14"
dependencies = [
"pyside6>=6.10.2",
]
[tool.mypy]
[[tool.mypy.overrides]]
module = ["win11toast.*"]
follow_untyped_imports = true