Skip to content

chore: switch authorizenet dependency to fork, linting#78

Merged
agritheory merged 3 commits into
version-15from
chore/authorizenet_dependency_to_fork
Mar 4, 2026
Merged

chore: switch authorizenet dependency to fork, linting#78
agritheory merged 3 commits into
version-15from
chore/authorizenet_dependency_to_fork

Conversation

@HKuz
Copy link
Copy Markdown
Collaborator

@HKuz HKuz commented Jan 21, 2026

Closes #62

PR is dependent on this PR to update our fork being merged first.

@HKuz
Copy link
Copy Markdown
Collaborator Author

HKuz commented Jan 21, 2026

I'll update poetry.lock (to address the CI failure) once the Authorizenet fork PR gets merged - there's currently a dependency mis-match on Python versions in pyproject.toml which that PR should fix.

@agritheory agritheory marked this pull request as ready for review March 4, 2026 15:20
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 4, 2026

📝 Draft Changelog Entry

Changelog Entry

This update switches the Authorize.Net payment processing dependency to use a maintained fork of the library. Configuration files across multiple document types (customers, employees, invoices, orders, and related records) have been updated to reflect this change. Code formatting has been standardized as part of this update.

This changelog entry was automatically generated by the Changelog Generator Action.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 4, 2026

❌ Code Duplication Report - Needs attention

Metric Value
Total Clones 8
Duplicated Lines 357
Duplication % 528.00%

View detailed report in artifacts

How to fix duplications
  1. Extract duplicated code into reusable functions or classes
  2. Use inheritance or composition for similar structures
  3. For configuration arrays (report columns, dialog fields), add ignore comments:
/* jscpd:ignore-start */
const dialogFields = [...];
/* jscpd:ignore-end */
# jscpd:ignore-start
columns = [...]
# jscpd:ignore-end

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 4, 2026

❌ Code Duplication Report - Needs attention

Metric Value
Total Clones 8
Duplicated Lines 357
Duplication % 528.00%

View detailed report in artifacts

How to fix duplications
  1. Extract duplicated code into reusable functions or classes
  2. Use inheritance or composition for similar structures
  3. For configuration arrays (report columns, dialog fields), add ignore comments:
/* jscpd:ignore-start */
const dialogFields = [...];
/* jscpd:ignore-end */
# jscpd:ignore-start
columns = [...]
# jscpd:ignore-end

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 4, 2026

Coverage

Coverage Report
FileStmtsMissCoverMissing
electronic_payments/config
   desktop.py330%4–8
   docs.py220%14–15
electronic_payments/electronic_payments/doctype/electronic_payment_profile
   electronic_payment_profile.py9456%13–16
electronic_payments/electronic_payments/doctype/electronic_payment_settings
   authorize.py4924636%46–47, 53–74, 77–99, 102–196, 199–231, 245–305, 309–337, 340–356, 359–429, 432–539, 542, 565–643, 657–747, 750–800, 821–867, 871–903
   base.py523631%57–96, 102–108, 157, 181, 199, 214, 301, 321
   common.py1852487%64, 75, 103, 229, 391, 395, 418–444, 481–539
   electronic_payment_settings.py26118230%67–73, 95, 97, 100–103, 105–108, 111–114, 116–117, 125–135, 139–149, 154–165, 178–190, 195–202, 207–216, 220–252, 256–300, 305–343, 365–378, 391–404, 417–477
   mercury.py25222411%35–36, 42–55, 61, 64–167, 170–225, 228–343, 348–365, 369, 372, 375, 398–472, 499, 502–544, 556–589, 594–596
   stripe.py31828710%70–71, 77–81, 86–104, 107–122, 125–195, 198–215, 229–294, 298–319, 322–338, 341–396, 399–461, 464, 472–495, 499, 502, 505–546, 550–588, 603–638
   wise.py4514158%35–36, 42–51, 58–111, 117, 120–207, 210–251, 255, 263–297, 301, 307, 313, 316–397, 400–456, 459–494, 497–540, 543–606, 609–699, 705–724, 729–758, 761–820, 823–854, 862–906, 909–954, 959–960
electronic_payments/electronic_payments/doctype/portal_payment_method
   portal_payment_method.py19479%24–29
electronic_payments/overrides
   payment_schedule.py32197%27
electronic_payments/templates/pages
   order.py29290%4–71
electronic_payments/www
   me.py550%4–11
electronic_payments/www/payment_methods
   index.py66660%4–101
   new_payment_method.py63630%4–103
   payment_method.py47470%4–82
electronic_payments/www/payments
   __init__.py27270%4–37
   index.py62620%4–133
TOTAL2387194419% 

@HKuz HKuz requested a review from agritheory March 4, 2026 21:26
@agritheory agritheory merged commit 24d893c into version-15 Mar 4, 2026
8 checks passed
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.

Authorizenet dependency is incompatible with Python 3.13+

2 participants