From 0df038a57a03011ffe156b43197274807069213c Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Fri, 24 Apr 2026 13:57:50 -0300 Subject: [PATCH 1/3] update --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6d352b1..29a773b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: files: requirements-dev.txt - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.20.1 + rev: v1.20.2 hooks: - id: mypy exclude: docs/source/conf.py From dd2281d0fd9bebf188a139556555aaa48c028ee1 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Fri, 24 Apr 2026 13:58:11 -0300 Subject: [PATCH 2/3] do not cache check_url_response --- erddapy/core/url.py | 1 - 1 file changed, 1 deletion(-) diff --git a/erddapy/core/url.py b/erddapy/core/url.py index c896d89..ba3c3bf 100644 --- a/erddapy/core/url.py +++ b/erddapy/core/url.py @@ -116,7 +116,6 @@ def urlopen( return data -@functools.lru_cache(maxsize=128) def check_url_response(url: str, **kwargs: dict) -> str: """Shortcut to `raise_for_status` instead of fetching the whole content. From 13601935e160b3f7799e33d07049fdec1cff66cc Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Fri, 24 Apr 2026 14:16:09 -0300 Subject: [PATCH 3/3] refresh cassettes --- .../test_download_url_distinct.yaml | 78 ++++++++++++++++++- 1 file changed, 75 insertions(+), 3 deletions(-) diff --git a/tests/cassettes/test_url_builder/test_download_url_distinct.yaml b/tests/cassettes/test_url_builder/test_download_url_distinct.yaml index 8b39316..567169c 100644 --- a/tests/cassettes/test_url_builder/test_download_url_distinct.yaml +++ b/tests/cassettes/test_url_builder/test_download_url_distinct.yaml @@ -1,4 +1,76 @@ interactions: +- request: + body: '' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Host: + - standards.sensors.ioos.us + User-Agent: + - python-httpx/0.28.1 + method: HEAD + uri: https://standards.sensors.ioos.us/erddap/tabledap/org_cormp_cap2.htmlTable?station,z + response: + body: + string: '' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Security-Policy: + - 'default-src ''self''; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + data: blob: http://*.axds.co http://*.axiomalaska.com http://*.axiomdatascience.com + http://*.aoos.org http://*.ioos.us http://cdnjs.cloudflare.com http://d3js.org + http://maps.googleapis.com http://www.youtube.com http://www.googletagmanager.com + http://cdn.jsdelivr.net http://dgd6r9iiqa8y9.cloudfront.net; style-src ''self'' + ''unsafe-inline'' http://*.axds.co http://*.axiomalaska.com http://fonts.googleapis.com + http://cdn.jsdelivr.net http://dgd6r9iiqa8y9.cloudfront.net; object-src ''none''; + base-uri ''self'' http://www.opendap.org; connect-src ''self'' http://*.axds.co + http://*.axiomalaska.com http://*.axiomdatascience.com http://*.ioos.us http://maps.googleapis.com + http://www.google-analytics.com http://cdn.jsdelivr.net; font-src ''self'' + data: http://fonts.gstatic.com http://cdn.jsdelivr.net; frame-src ''self'' + http://*.axiomalaska.com http://www.youtube.com; img-src ''self'' data: http://*.axds.co + http://*.axiomalaska.com http://*.mapbox.com http://*.openstreetmap.org http://maps.googleapis.com + http://*.noaa.gov http://maps.gstatic.com http://www2.demis.nl http://ahocevar.com + http://*.nasa.gov http://godiva.reading.ac.uk http://www.gebco.net http://wms.gebco.net + http://*.api.mapbox.com http://*.alaska.gov http://fishingstatus.com http://images.marinespecies.org + http://images.squarespace-cdn.com http://ioos.us http://server.arcgisonline.com + http://upload.wikimedia.org http://wms.chartbundle.com http://www.gmrt.org + http://secoora.org http://www.gravatar.com http://www.googletagmanager.com + http://*.amazonaws.com http://cdn.jsdelivr.net http://dgd6r9iiqa8y9.cloudfront.net; + manifest-src ''self''; media-src ''self'' http://*.amazonaws.com http://cdn.jsdelivr.net; + worker-src blob:; form-action http://status.atn.ioos.us http://atn.ioos.us + http://portal.atn.ioos.us http://mbon.ioos.us http://sensors.ioos.us http://standards.sensors.ioos.us + http://beta.sensors.ioos.us http://video.ioos.us http://dacregistration.atn.ioos.us; + report-uri https://sentry.srv.axds.co/api/2/security/?sentry_key=7de616494a2346fb8fdf8cd018062730&sentry_version=7' + Content-Type: + - text/html;charset=UTF-8 + Date: + - Fri, 24 Apr 2026 17:15:33 GMT + Expires: + - Thu, 01 Jan 1970 00:00:01 GMT + Last-Modified: + - Fri, 24 Apr 2026 17:15:33 GMT + Server: + - nginx/1.28.0 + Strict-Transport-Security: + - max-age=31536000 + X-Content-Type-Options: + - nosniff + erddap-server: + - 2.30.0 + xdods-server: + - dods/3.7 + status: + code: 200 + message: '' - request: body: '' headers: @@ -53,11 +125,11 @@ interactions: Content-Type: - text/html;charset=UTF-8 Date: - - Thu, 12 Mar 2026 12:16:03 GMT + - Fri, 24 Apr 2026 17:15:35 GMT Expires: - Thu, 01 Jan 1970 00:00:01 GMT Last-Modified: - - Thu, 12 Mar 2026 12:16:03 GMT + - Fri, 24 Apr 2026 17:15:35 GMT Server: - nginx/1.28.0 Strict-Transport-Security: @@ -65,7 +137,7 @@ interactions: X-Content-Type-Options: - nosniff erddap-server: - - 2.28.1 + - 2.30.0 xdods-server: - dods/3.7 status: