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
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ 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`).

---

### 3. Dependency Management

* **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

---

Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
[tool.pyright]
pythonVersion = "3.13"
typeCheckingMode = "strict"
include = ["ryan_library", "ryan_scripts"]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ colorama
XlsxWriter
psutil
black
mypy
pyright
laspy
tqdm
rasterio
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"XlsxWriter",
"psutil",
"black",
"mypy",
"pyright",
"laspy",
"tqdm",
"rasterio",
Expand Down