Commit Graph

9 Commits

Author SHA1 Message Date
Wei Ji e3373026d6 Enable pydocstyle (D) ruff rule and add more docs (#21)
* Use pydocstyle (D) rule with google convention

Add a ruff rule to catch missing documentation. Using google convention so that undocumented-param (D417) rule is enabled to catch missing params, xref https://docs.astral.sh/ruff/rules/undocumented-param. Extended to include D213 (instead of D212) and D410 rules too.

* Fix D100 Missing docstring in public module

* Fix D101 Missing docstring in public class

* Fix D103 Missing docstring in public function

Also ignore rule D205 to allow first sentence of docstring to wrap to multiple lines.

* Fix  D417 Missing argument description in the docstring

* Update indent in pyproject.toml file
2025-12-09 08:22:01 +00:00
Daniel Wiesmann 9b202c504e Render naip and summarize (#20)
* Intermediate

* Fix naip geom handling

* Fix imagery decoding for summary tool

* Re enable xfail

* Re enable xfail

* Remove png references
2025-12-05 15:39:16 +00:00
Wei Ji e3530cefd2 Use ruff rules COM, F, I, RUF, UP (#17)
* Use pyupgrade (UP) rule

* Use pyflakes (F) rule

* Use isort (I) rule

* Use ruff-specific (RUF) rules

* Use flake8-commas (COM) rule

* Fix UP043 Unnecessary default type arguments
2025-12-05 10:44:37 +00:00
Daniel Wiesmann 7c97b475e4 Fix frontend (#15)
* Fix frontend

* Fix feature creation from overture tool
2025-12-05 10:04:38 +00:00
Daniel Wiesmann 16f39f908f Fix frontend and api state handling (#11)
* Fix frontend and api state handling

* Increase timeout to 6 mins

* Fix test
2025-12-04 15:33:47 +00:00
Wei Ji a87b64b71e Mark test requiring ollama server as xfail (#10)
Should only run these locally for now
2025-12-04 15:29:12 +00:00
Daniel Wiesmann bcc331bd5e Add api test back in 2025-12-04 14:58:37 +00:00
Wei Ji 2d5af2adb9 Enable pytest-asyncio tests in CI (#3)
* Set asyncio_mode="auto" in pytest.ini config

Xref https://pytest-asyncio.readthedocs.io/en/latest/reference/configuration.html#asyncio-mode

* Add test-python GitHub Actions CI workflow

* Add `--color=yes` flag to force GitHub Actions logs to have color

Xref https://github.com/pytest-dev/pytest/issues/7443

* Refactor contents of test_api.py slightly

Using some ruff rules

* Delete test_api.py

* Make test_get_place async

* Make get_place async, and call .ainvoke method on it
2025-12-04 13:09:02 +00:00
Daniel Wiesmann 1a11473421 Initial commit 2025-12-04 09:36:14 +00:00