Skip to content

🎨 Allow ip_throttle to be callable#1199

Merged
akrherz merged 1 commit intomainfrom
callable_ip_throttle
Apr 21, 2026
Merged

🎨 Allow ip_throttle to be callable#1199
akrherz merged 1 commit intomainfrom
callable_ip_throttle

Conversation

@akrherz
Copy link
Copy Markdown
Owner

@akrherz akrherz commented Apr 21, 2026

No description provided.

@deepsource-io
Copy link
Copy Markdown
Contributor

deepsource-io Bot commented Apr 21, 2026

DeepSource Code Review

We reviewed changes in d3e4697...f3c6f47 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Python Apr 21, 2026 7:37p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

Comment thread src/pyiem/webutil.py
if res:
return True
mc.set(key, "1", expire=int(throttle_secs) + 1)
except Exception:
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2026

Codecov Report

❌ Patch coverage is 82.35294% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.58%. Comparing base (d3e4697) to head (f3c6f47).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/pyiem/webutil.py 82.35% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1199   +/-   ##
=======================================
  Coverage   98.57%   98.58%           
=======================================
  Files          90       90           
  Lines       10828    10830    +2     
=======================================
+ Hits        10674    10677    +3     
+ Misses        154      153    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@akrherz akrherz merged commit 0e347b8 into main Apr 21, 2026
8 of 9 checks passed
@akrherz akrherz deleted the callable_ip_throttle branch April 21, 2026 19:42
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.

2 participants