Commit Graph

38 Commits

Author SHA1 Message Date
72cbe73cce Mock up geoip2.database asn + city methods in contextmanager mode
Some checks failed
Flake8 / audit (3.11) (pull_request) Failing after 5m19s
Mypy / audit-typing (3.11) (pull_request) Successful in 10m50s
Pylint / audit-runtime-security (3.11) (pull_request) Successful in 10m39s
Python Coverage / test-and-coverage (3.11) (pull_request) Successful in 10m25s
Bandit / audit-runtime-security (3.11) (pull_request) Successful in 9m57s
pip-audit / audit-dependency-security (3.11) (pull_request) Successful in 11m20s
2026-03-17 13:18:53 +01:00
bfbfc13dda Explicitly use starlette 0.50.0 for TestClient's client parameter
Some checks failed
Bandit / audit-runtime-security (3.11) (pull_request) Successful in 10m0s
Flake8 / audit (3.11) (pull_request) Successful in 9m57s
Mypy / audit-typing (3.11) (pull_request) Successful in 10m53s
pip-audit / audit-dependency-security (3.11) (pull_request) Successful in 11m21s
Pylint / audit-runtime-security (3.11) (pull_request) Successful in 10m34s
Python Coverage / test-and-coverage (3.11) (pull_request) Failing after 5m51s
Seems the pipeline has starlette-0.41.3 cached, which does satisfy
starlette<0.51.0,>=0.40.0 but not my specific use :)
2026-03-15 20:22:26 +01:00
b9f06068b0 Add pip audit as a development dependency
Some checks failed
Bandit / audit-runtime-security (3.11) (pull_request) Successful in 10m5s
Flake8 / audit (3.11) (pull_request) Successful in 10m6s
pip-audit / audit-dependency-security (3.11) (pull_request) Successful in 11m13s
Pylint / audit-runtime-security (3.11) (pull_request) Failing after 5m41s
Python Coverage / test-and-coverage (3.11) (pull_request) Failing after 5m39s
Mypy / audit-typing (3.11) (pull_request) Failing after 6m21s
2026-03-15 18:33:32 +01:00
de419a92b6 Add httpx as a development dependency for the fastapi TestClient 2026-03-15 18:32:25 +01:00
edbabdb932 Add bandit as a development dependency 2026-03-15 18:32:02 +01:00
a2ab54d538 Add python-dotenv as a runtime dependency 2026-03-15 18:28:47 +01:00
86bfb0171b Fix pylint not finding the app from test
Some checks failed
Bandit / audit-runtime-security (3.11) (pull_request) Successful in 10m4s
Flake8 / audit (3.11) (pull_request) Successful in 10m3s
Mypy / audit-typing (3.11) (pull_request) Failing after 6m17s
pip-audit / audit-dependency-security (3.11) (pull_request) Successful in 11m8s
Pylint / audit-runtime-security (3.11) (pull_request) Failing after 5m56s
Python Coverage / test-and-coverage (3.11) (pull_request) Failing after 5m35s
2026-03-15 17:46:23 +01:00
0b053d2572 Ignore mypy for this specific case in the test 2026-03-15 15:41:57 +01:00
45c55a4ddf Exclude tests and venv
Some checks failed
Bandit / audit-runtime-security (3.11) (pull_request) Successful in 10m3s
Flake8 / audit (3.11) (pull_request) Successful in 9m56s
Mypy / audit-typing (3.11) (pull_request) Failing after 6m13s
pip-audit / audit-dependency-security (3.11) (pull_request) Successful in 11m10s
Pylint / audit-runtime-security (3.11) (pull_request) Failing after 5m56s
Python Coverage / test-and-coverage (3.11) (pull_request) Failing after 5m37s
2026-03-15 15:03:13 +01:00
592d0ccbfb Move tests to their own folder 2026-03-15 15:02:13 +01:00
230d031e67 Add code coverage. also, install dev depends from requirements-dev.txt
Some checks failed
Bandit / audit-runtime-security (3.11) (pull_request) Failing after 5m39s
Flake8 / audit (3.11) (pull_request) Successful in 10m3s
Mypy / audit-typing (3.11) (pull_request) Failing after 6m15s
pip-audit / audit-dependency-security (3.11) (pull_request) Successful in 11m14s
Pylint / audit-runtime-security (3.11) (pull_request) Failing after 5m50s
Python Coverage / test-and-coverage (3.11) (pull_request) Failing after 5m40s
2026-03-15 12:21:06 +01:00
633c09ef64 Add code coverage
Some checks failed
Bandit / audit-runtime-security (3.11) (pull_request) Successful in 9m57s
Flake8 / audit (3.11) (pull_request) Successful in 10m0s
Mypy / audit-typing (3.11) (pull_request) Successful in 10m34s
pip-audit / audit-dependency-security (3.11) (pull_request) Successful in 11m15s
Pylint / audit-runtime-security (3.11) (pull_request) Successful in 10m26s
Python Coverage / test-and-coverage (3.11) (pull_request) Failing after 5m31s
2026-03-15 11:02:05 +01:00
79d4ec6eb6 Rework to use the debian docker based runner
All checks were successful
Bandit / audit-runtime-security (3.11) (pull_request) Successful in 10m5s
Flake8 / audit (3.11) (pull_request) Successful in 10m2s
Mypy / audit-typing (3.11) (pull_request) Successful in 11m3s
pip-audit / audit-dependency-security (3.11) (pull_request) Successful in 11m14s
Pylint / audit-runtime-security (3.11) (pull_request) Successful in 10m19s
2026-03-15 11:01:18 +01:00
5427fc69b0 Fix mypy issue to catch situation where we might not have a client address
All checks were successful
pip-audit / build (3.11) (pull_request) Successful in 11m22s
Bandit / build (3.11) (push) Successful in 10s
Flake8 / build (3.11) (push) Successful in 8s
Mypy / build (3.11) (push) Successful in 3m30s
Pylint / build (3.11) (push) Successful in 30s
2026-03-14 17:05:49 +01:00
97a4a797b2 Chase current FreeBSD versions
Some checks failed
pip-audit / build (3.11) (pull_request) Successful in 11m21s
Bandit / build (3.11) (push) Has been cancelled
Flake8 / build (3.11) (push) Has been cancelled
Mypy / build (3.11) (push) Has been cancelled
Pylint / build (3.11) (push) Has been cancelled
2026-03-14 16:33:52 +01:00
76a1cb86ed Use the linux/docker runner
Some checks failed
pip-audit / build (3.11) (pull_request) Failing after 7m7s
Bandit / build (3.11) (push) Has been cancelled
Flake8 / build (3.11) (push) Has been cancelled
Mypy / build (3.11) (push) Has been cancelled
Pylint / build (3.11) (push) Has been cancelled
2026-03-14 15:58:24 +01:00
8f63d5ae68 look in requirements.txt
Some checks failed
Pylint / build (3.11) (push) Successful in 27s
Bandit / build (3.11) (push) Successful in 8s
Flake8 / build (3.11) (push) Successful in 8s
Mypy / build (3.11) (push) Failing after 3m36s
pip-audit / build (3.11) (pull_request) Has been cancelled
2026-03-14 11:04:41 +01:00
8ec34cfbeb Ignore vim swapfiles
Some checks failed
Bandit / build (3.11) (push) Successful in 10s
Flake8 / build (3.11) (push) Successful in 9s
Mypy / build (3.11) (push) Failing after 4m30s
Pylint / build (3.11) (push) Successful in 28s
pip-audit / build (3.11) (pull_request) Failing after 12s
2026-03-13 22:26:15 +01:00
479f990044 add more linters 2026-03-13 22:25:24 +01:00
078514b69e Add CORS handling, and load settings from .env
Some checks failed
Flake8 / build (3.11) (push) Successful in 10s
Mypy / build (3.11) (push) Failing after 1m46s
Pylint / build (3.11) (push) Successful in 28s
2026-03-11 19:21:44 +01:00
7754b77b82 ::error::Unsupported platform: freebsd Revert "Try this with uv"
Some checks failed
Flake8 / build (3.11) (push) Successful in 9s
Mypy / build (3.11) (push) Failing after 1m59s
Pylint / build (3.11) (push) Successful in 29s
This reverts commit 87a9b1dd5f.
2026-03-05 16:35:20 +01:00
87a9b1dd5f Try this with uv
Some checks failed
Flake8 / build (3.11) (push) Successful in 13s
Mypy / build (3.11) (push) Failing after 2m12s
Pylint / build (3.11) (push) Failing after 2m33s
2026-03-05 16:00:55 +01:00
98643f9a69 Add requirements 2025-03-14 14:00:47 +01:00
e77e4dc174 Added workflows 2025-03-14 13:39:44 +01:00
a95dfaae2b Merge pull request 'Add Cache-Control headers to output' (#1) from cache_control into main
Reviewed-on: #1
2024-05-07 15:16:45 +00:00
4eb906f6d4 Code cleanup 2024-05-07 17:12:23 +02:00
878a2b6bbf Add missing parameter 2024-05-07 16:50:41 +02:00
d090e90ee2 Add Cache-Control headers 2024-05-06 17:24:27 +02:00
38416f103f Needs to be absolute path when ran from supervisord 2023-12-25 15:21:02 +01:00
484e548c46 Reduce logging 2023-12-25 15:15:35 +01:00
1fa64feefc Redirect empty GET with request to client address 2023-12-25 14:16:45 +01:00
f78ed7592d Add startup script and socket directory for gunicorn 2023-12-25 14:15:39 +01:00
0b4322d671 Handle AddressNotFoundError and allow empty placeholder GeoLocation for failed queries 2023-12-18 14:59:27 +01:00
949e8582bc documentation fixes 2023-12-12 14:49:53 +01:00
734ac03c65 Add post method and let the get method reuse that code 2023-12-12 14:46:14 +01:00
49e16b106f This decorator messes up pydantics BaseModel 2023-12-12 14:45:51 +01:00
4c4203a679 Simple FastAPI geolocation app 2023-12-12 10:43:09 +01:00
3bf89e4306 Initial commit 2023-12-12 09:22:22 +00:00