From 28ff0460abd63df5ad446c30c3251d87ef35adb3 Mon Sep 17 00:00:00 2001 From: Helldragon67 Date: Thu, 23 Jan 2025 12:01:49 +0100 Subject: [PATCH] cleanup --- .gitea/workflows/backend_run_lint.yaml | 2 +- README.md | 1 - backend/.gitignore | 7 +- backend/report.html | 10 +- backend/src/main.py | 3 +- backend/src/overpass/__init__.py | 0 backend/src/overpass/caching_strategy.py | 4 +- backend/src/overpass/overpass.py | 21 +- backend/src/sandbox/bandung_data.json | 4442 -- backend/src/sandbox/colmar_data.json | 698 - backend/src/sandbox/get_streets.py | 350 - backend/src/sandbox/lyon_data.json | 17824 ----- backend/src/sandbox/newyork_data.json | 42085 ----------- backend/src/sandbox/overpass_test.py | 288 - backend/src/sandbox/paris_data.json | 83615 --------------------- backend/src/sandbox/strasbourg_data.json | 4947 -- backend/src/sandbox/vienna_data.json | 23140 ------ backend/src/sandbox/winterthur_data.json | 2844 - backend/src/sandbox/zurich_data.json | 16070 ---- backend/src/tests/test_cache.py | 42 - backend/src/tests/test_main.py | 10 +- backend/src/tests/test_utils.py | 46 +- backend/src/utils/__init__.py | 0 backend/src/utils/cluster_manager.py | 42 +- backend/src/utils/landmarks_manager.py | 2 +- backend/src/utils/toilets_manager.py | 2 +- 26 files changed, 56 insertions(+), 196439 deletions(-) create mode 100644 backend/src/overpass/__init__.py delete mode 100644 backend/src/sandbox/bandung_data.json delete mode 100644 backend/src/sandbox/colmar_data.json delete mode 100644 backend/src/sandbox/get_streets.py delete mode 100644 backend/src/sandbox/lyon_data.json delete mode 100644 backend/src/sandbox/newyork_data.json delete mode 100644 backend/src/sandbox/overpass_test.py delete mode 100644 backend/src/sandbox/paris_data.json delete mode 100644 backend/src/sandbox/strasbourg_data.json delete mode 100644 backend/src/sandbox/vienna_data.json delete mode 100644 backend/src/sandbox/winterthur_data.json delete mode 100644 backend/src/sandbox/zurich_data.json delete mode 100644 backend/src/tests/test_cache.py create mode 100644 backend/src/utils/__init__.py diff --git a/.gitea/workflows/backend_run_lint.yaml b/.gitea/workflows/backend_run_lint.yaml index 5db2228..e12f23e 100644 --- a/.gitea/workflows/backend_run_lint.yaml +++ b/.gitea/workflows/backend_run_lint.yaml @@ -28,5 +28,5 @@ jobs: working-directory: backend - name: Run linter - run: pipenv run pylint src --fail-under=9 + run: pipenv run pylint src --fail-under=9 working-directory: backend diff --git a/README.md b/README.md index 7422598..ea7913f 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,6 @@ Refer to the READMEs in the `frontend` and `backend` directories for instruction - `google_maps_flutter` plugin - Python 3 - `fastapi` - - `OSMPythonTools` - `numpy, scipy` - Docker diff --git a/backend/.gitignore b/backend/.gitignore index e41338d..75ed7e8 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -1,10 +1,5 @@ -# osm-cache and wikidata cache +# osm-cache cache_XML/ -cache/ -apicache/ - -# wikidata throttle -*.ctrl # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/backend/report.html b/backend/report.html index acbcf6a..0b59e79 100644 --- a/backend/report.html +++ b/backend/report.html @@ -328,7 +328,7 @@ div.media {

Backend Testing Report

-

Report generated on 23-Jan-2025 at 10:32:29 by pytest-html +

Report generated on 23-Jan-2025 at 11:57:54 by pytest-html v4.1.1

Environment

@@ -382,7 +382,7 @@ div.media {

Summary

-

2 tests took 00:00:18.

+

1 test took 99 ms.

(Un)check the boxes to filter the results.