Skip to content

Modernization and testing of BDK#94

Merged
shaddi merged 4 commits into
mainfrom
modernization-and-testing
Jun 5, 2026
Merged

Modernization and testing of BDK#94
shaddi merged 4 commits into
mainfrom
modernization-and-testing

Conversation

@shaddi

@shaddi shaddi commented Jun 5, 2026

Copy link
Copy Markdown
Member

Starting a big cleanup of this codebase so we can better manage it going forward. Step one is adding tests, modernizing the build process and dependency management, running a linter, and cleaning up the developer environment and build process.

shaddi added 3 commits June 5, 2026 13:50
- Manage Python dependencies with uv (pyproject.toml + uv.lock); drop requirements.txt.
- Move backend and worker images to Python 3.12, installed via uv; keep GDAL + tippecanoe.
- Update geospatial file reading to modern geopandas/pyogrio (replacing fastkml and
  fiona driver toggling) and SQLAlchemy 2.0 import paths.
- Fix two dependency-bump regressions: werkzeug 3 password hashing and
  flask-jwt-extended 4.7 subject verification.
- Adopt ruff for linting and formatting.
- Stop auto-generating database migrations at container startup.
- pytest suite: unit tests for the geospatial readers, coverage algorithms and CSV
  export; API/auth smoke tests through the Flask routes; and an end-to-end test that
  replays real filings and asserts the pipeline output is reproduced.
- docker-compose.test.yml runs the suite in the backend image against a throwaway
  Postgres, matching the production stack.
- GitHub Actions runs ruff and pytest on every pull request.
- .env.example documenting all required configuration.
- Makefile with one-command up/down/test/lint/seed/migrate.
- scripts/seed.py to seed a development org, user and sample filing.
- .gitignore: ignore local dev data and tool caches.
@shaddi shaddi requested a review from ZhuoweiWen June 5, 2026 17:54
Run ruff format over files added after the initial formatting pass so
ruff format --check is clean.
@shaddi shaddi merged commit e2c0011 into main Jun 5, 2026
1 check passed
@shaddi shaddi deleted the modernization-and-testing branch June 9, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant