Skip to content

Refactor - #75

Merged
sadrasabouri merged 11 commits into
devfrom
refactor
Oct 23, 2025
Merged

Refactor#75
sadrasabouri merged 11 commits into
devfrom
refactor

Conversation

@sepandhaghighi

Copy link
Copy Markdown
Member

Reference Issues/PRs

What does this implement/fix? Explain your changes.

  • ForceIPHTTPAdapter class added
  • _get_json_force_ip function added
  • IPv4HTTPAdapter class removed
  • _get_json_ipv4_forced function removed

Any other comments?

@sepandhaghighi sepandhaghighi self-assigned this Oct 22, 2025
@sepandhaghighi sepandhaghighi added this to the ipspot v0.6 milestone Oct 22, 2025
@codecov-commenter

codecov-commenter commented Oct 22, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.85714% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.31%. Comparing base (36ac5e7) to head (4097ea7).

Files with missing lines Patch % Lines
ipspot/utils.py 90.32% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #75      +/-   ##
==========================================
- Coverage   79.46%   79.31%   -0.15%     
==========================================
  Files           4        4              
  Lines         375      382       +7     
  Branches       40       41       +1     
==========================================
+ Hits          298      303       +5     
- Misses         60       61       +1     
- Partials       17       18       +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.

@sepandhaghighi
sepandhaghighi marked this pull request as ready for review October 22, 2025 21:53
Comment thread ipspot/utils.py
Comment on lines +26 to +27
if self.version not in ("ipv4", "ipv6"):
raise ValueError("version must be either 'ipv4' or 'ipv6'")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for future: these should be in params.py

@sadrasabouri
sadrasabouri merged commit 6e5edeb into dev Oct 23, 2025
22 checks passed
@sadrasabouri
sadrasabouri deleted the refactor branch October 23, 2025 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants