Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"preLaunchTask": "Create .env.tmp file",
"postDebugTask": "Delete .env.tmp file",
"module": "uvicorn",
"args": ["src.askui.chat.api.app:app","--reload","--port","9261"],
"args": ["askui.chat.api.app:app","--reload","--port","9261"],
"envFile": "${workspaceFolder}/.env.tmp",
"env": {
"ASKUI_WORKSPACES__LOG__FORMAT": "logfmt",
Expand Down
26 changes: 26 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[mypy]
python_version = 3.10
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_optional = true
plugins = pydantic.mypy
exclude = (?x)(
^src/askui/models/ui_tars_ep/ui_tars_api\.py$
| ^src/askui/tools/askui/askui_ui_controller_grpc/.*$
| ^src/askui/tools/askui/askui_workspaces/.*$
)
mypy_path = src:tests
explicit_package_bases = true
namespace_packages = true

[mypy-jsonref.*]
ignore_missing_imports = true
73 changes: 42 additions & 31 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 7 additions & 26 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dependencies = [
"rich>=13.9.4",
"segment-analytics-python>=2.3.4",
"tenacity>=9.1.2",
"jsonref>=1.1.0",
]
requires-python = ">=3.10"
readme = "README.md"
Expand Down Expand Up @@ -53,9 +54,14 @@ format = "ruff format src tests"
lint = "ruff check src tests"
"lint:fix" = "ruff check --fix src tests"
typecheck = "mypy"
"typecheck:all" = "mypy src tests"
"typecheck:all" = "mypy ."
"chat:api" = "uvicorn askui.chat.api.app:app --reload --port 9261"
"mcp:dev" = "mcp dev src/askui/mcp/__init__.py"
"qa:fix" = { composite = [
"typecheck:all",
"format",
"lint:fix",
] }

[dependency-groups]
test = [
Expand Down Expand Up @@ -84,31 +90,6 @@ python_functions = ["test_*"]
testpaths = ["tests"]
timeout = 60

[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_optional = true
plugins = ["pydantic.mypy"]
exclude = [
"src/askui/models/ui_tars_ep/ui_tars_api.py",
"src/askui/tools/anthropic/computer.py",
"src/askui/tools/askui/askui_ui_controller_grpc/.*",
"src/askui/tools/askui/askui_workspaces/.*",
]
mypy_path = "src"
explicit_package_bases = true
namespace_packages = true

[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
Expand Down
Loading