fix(tooling): agregar pyrightconfig y normalizar imports de scripts para el linter de la IDE

This commit is contained in:
2026-10-16 15:46:31 -03:00
parent b2a4f878d8
commit 06306c372a
3 changed files with 13 additions and 8 deletions
+1
View File
@@ -0,0 +1 @@
# Package marker for backend
+9
View File
@@ -0,0 +1,9 @@
{
"include": [
"backend",
"scripts"
],
"extraPaths": [
"backend"
]
}
-5
View File
@@ -15,11 +15,6 @@ backend_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'bac
if backend_dir not in sys.path:
sys.path.insert(0, backend_dir)
try:
from backend.app import create_app, db
from backend.app.models.user import User
from backend.app.models.role import Role
except ImportError:
from app import create_app, db
from app.models.user import User
from app.models.role import Role