mirror of
https://github.com/kjanat/livegraphs-django.git
synced 2026-02-13 11:29:30 +01:00
feat: add ty type checking support and fix type issues
- Add ty.toml configuration with Django project root - Add py.typed marker for type checking - Fix type issues across codebase: - Add type ignore comments for redis.exceptions imports - Fix django.db.models.functions imports in utils - Fix getattr usage in accounts/forms - Remove unnecessary type annotations in dashboard/forms - Configure ty to exclude migrations and respect ignore files - All ty checks now pass (29 diagnostics -> 0)
This commit is contained in:
@@ -40,6 +40,13 @@ dependencies = [
|
||||
"Documentation" = "https://github.com/kjanat/livegraphsdjango#readme"
|
||||
"Source" = "https://github.com/kjanat/livegraphsdjango"
|
||||
|
||||
[project.scripts]
|
||||
# Django management commands
|
||||
livegraphs-manage = "dashboard_project.manage:main"
|
||||
livegraphs-migrate = "dashboard_project.__main__:migrate"
|
||||
livegraphs-server = "dashboard_project.__main__:runserver"
|
||||
livegraphs-shell = "dashboard_project.__main__:shell"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"bandit>=1.8.3",
|
||||
@@ -52,6 +59,7 @@ dev = [
|
||||
"pytest>=8.3.5",
|
||||
"pytest-django>=4.11.1",
|
||||
"ruff>=0.11.10",
|
||||
"ty>=0.0.1a25",
|
||||
]
|
||||
|
||||
[build-system]
|
||||
@@ -165,4 +173,9 @@ line-ending = "lf"
|
||||
packages = ["dashboard_project"]
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
"dashboard_project" = ["static/__/*", "templates/__/*", "media/**/*"]
|
||||
"dashboard_project" = [
|
||||
"static/**/*",
|
||||
"templates/**/*",
|
||||
"media/**/*",
|
||||
"py.typed"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user