handle_cors #2

Merged
ruben merged 21 commits from handle_cors into main 2026-03-17 16:23:31 +00:00
Owner

add some cors middleware so the api can be used by an frontend

add some cors middleware so the api can be used by an frontend
ruben added 3 commits 2026-03-13 21:29:07 +00:00
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
078514b69e
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
8ec34cfbeb
ruben added 1 commit 2026-03-14 10:05:01 +00:00
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
8f63d5ae68
ruben added 1 commit 2026-03-14 14:58:36 +00:00
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
76a1cb86ed
ruben added 1 commit 2026-03-14 15:34:47 +00:00
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
97a4a797b2
ruben added 1 commit 2026-03-14 16:06:45 +00:00
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
5427fc69b0
ruben added 1 commit 2026-03-15 10:01:31 +00:00
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
79d4ec6eb6
ruben added 1 commit 2026-03-15 10:02:14 +00:00
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
633c09ef64
ruben added 1 commit 2026-03-15 11:21:25 +00:00
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
230d031e67
ruben added 2 commits 2026-03-15 14:03:21 +00:00
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
45c55a4ddf
ruben added 2 commits 2026-03-15 16:47:33 +00:00
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
86bfb0171b
ruben added 4 commits 2026-03-15 17:34:59 +00:00
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
b9f06068b0
ruben added 1 commit 2026-03-15 19:24:33 +00:00
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
bfbfc13dda
Seems the pipeline has starlette-0.41.3 cached, which does satisfy
starlette<0.51.0,>=0.40.0 but not my specific use :)
ruben added 1 commit 2026-03-17 12:19:08 +00:00
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
72cbe73cce
ruben added 1 commit 2026-03-17 12:41:45 +00:00
fix flake8 defects
All checks were successful
Bandit / audit-runtime-security (3.11) (pull_request) Successful in 10m3s
Mypy / audit-typing (3.11) (pull_request) Successful in 11m0s
pip-audit / audit-dependency-security (3.11) (pull_request) Successful in 11m2s
Pylint / audit-runtime-security (3.11) (pull_request) Successful in 10m32s
Python Coverage / test-and-coverage (3.11) (pull_request) Successful in 10m24s
Flake8 / audit (3.11) (pull_request) Successful in 10m1s
28ff636f87
ruben merged commit 349967fdb3 into main 2026-03-17 16:23:31 +00:00
ruben deleted branch handle_cors 2026-03-17 16:23:32 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ruben/ismijnipverweg#2
No description provided.