From 602724e3b661e21b415331c93dc995f2ad06cc37 Mon Sep 17 00:00:00 2001 From: Chain-Frost Date: Wed, 12 Nov 2025 12:05:49 +0800 Subject: [PATCH] Restore VS Code extension lists --- AGENTS.md | 4 ++-- pyproject.toml | 9 ++++----- requirements.txt | 2 +- setup.py | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index a7db3272..75faa566 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -36,7 +36,7 @@ This file guides AI agents (e.g., ChatGPT Codex) on how to interact with and con * **Formatting**: Format with [Black](https://github.com/psf/black) using a 120 character line length. A `pyproject.toml` is provided with this configuration. * **Type Hints**: All public functions and methods should include type annotations. Always use Python 3.13+ style. -* **Linting**: Use `mypy` for static analysis. Only run mypy on files you have modified. Do not run mypy on any other files unless the user asks you to. +* **Linting**: Use `pyright` for static analysis in `strict` mode (configured via `pyproject.toml`). Only run Pyright on files you have modified (e.g., `pyright ryan_library/path/to_file.py`). --- @@ -44,7 +44,7 @@ This file guides AI agents (e.g., ChatGPT Codex) on how to interact with and con * **requirements.txt**: Primary list of `pip`-installable packages. * **Vendoring**: Third‑party modules like `PyHMA` are placed under `vendor/` and must have an `__init__.py`. -* **pyproject.toml**: black and mypy settings +* **pyproject.toml**: black and pyright settings --- diff --git a/pyproject.toml b/pyproject.toml index 49b6e742..7941789d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,7 @@ line-length = 120 target-version = ['py313'] include = '\.pyi?$' -[tool.mypy] -python_version="3.13" -strict=true -show_error_codes=true -files=["ryan_library","ryan_scripts"] \ No newline at end of file +[tool.pyright] +pythonVersion = "3.13" +typeCheckingMode = "strict" +include = ["ryan_library", "ryan_scripts"] diff --git a/requirements.txt b/requirements.txt index 1f51efa3..4c521f38 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ colorama XlsxWriter psutil black -mypy +pyright laspy tqdm rasterio diff --git a/setup.py b/setup.py index 09affacf..5fd09cc6 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ "XlsxWriter", "psutil", "black", - "mypy", + "pyright", "laspy", "tqdm", "rasterio",