Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/commit-ofxtools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion ofxtools/models/profile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" FI Profile - OFX Section 7 """
"""FI Profile - OFX Section 7"""


__all__ = [
Expand Down
1 change: 1 addition & 0 deletions ofxtools/ofxhome.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import xml.etree.ElementTree as ET
from xml.sax import saxutils
import urllib
import urllib.request
import urllib.error as urllib_error
import urllib.parse as urllib_parse
import re
Expand Down
6 changes: 3 additions & 3 deletions ofxtools/scripts/ofxget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@ def _read_scan_response(


def collate_scan_results(
scan_results: Iterable[Tuple[OFXVersion, Sequence[MarkupFormat]]]
scan_results: Iterable[Tuple[OFXVersion, Sequence[MarkupFormat]]],
) -> ScanResult:
"""
Input ``scan_results`` needs to be a complete set for either OFXv1 or v2,
Expand Down Expand Up @@ -1365,7 +1365,7 @@ def sortKey(d):
# OFX PARSING
###############################################################################
def verify_status(
trnrs: Union[models.SONRS, models.PROFTRNRS, models.ACCTINFOTRNRS]
trnrs: Union[models.SONRS, models.PROFTRNRS, models.ACCTINFOTRNRS],
) -> None:
"""
Input a models.Aggregate instance representing a transaction wrapper.
Expand Down Expand Up @@ -1499,7 +1499,7 @@ def fi_index() -> Sequence[Tuple[str, str, str]]:
names = {id_: name for id_, name in USERCFG["NAMES"].items()}
cfg_default_sect = USERCFG.default_section # type: ignore
servers = [
(names.get(sct.get("ofxhome", None), ""), nick, sct.get("ofxhome", "--"))
(names.get(sct.get("ofxhome", ""), ""), nick, sct.get("ofxhome", "--"))
for nick, sct in USERCFG.items()
if nick not in (cfg_default_sect, "NAMES") and "url" in sct
]
Expand Down
2 changes: 1 addition & 1 deletion ofxtools/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Utility functions and classes """
"""Utility functions and classes"""

# stdlib imports
import datetime
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
],
keywords=["ofx", "Open Financial Exchange"],
)
2 changes: 1 addition & 1 deletion tests/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Common classes reused by unit tests in this package """
"""Common classes reused by unit tests in this package"""

# stdlib imports
import unittest
Expand Down
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for ofxtools.Client """
"""Unit tests for ofxtools.Client"""

# stdlib imports
import unittest
Expand Down
2 changes: 1 addition & 1 deletion tests/test_header.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for ofxtools.header """
"""Unit tests for ofxtools.header"""

# stdlib imports
import unittest
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models/base.py """
"""Unit tests for models/base.py"""
# stdlib imports
import unittest
import xml.etree.ElementTree as ET
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_billpay_common.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.billpay.common """
"""Unit tests for models.billpay.common"""
# stdlib imports
import unittest
from datetime import datetime
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_billpay_list.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.billpay.common """
"""Unit tests for models.billpay.common"""
# stdlib imports
import unittest
from xml.etree.ElementTree import Element, SubElement
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_billpay_mail.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.billpay.mail"""
"""Unit tests for models.billpay.mail"""
# stdlib imports
import unittest
import xml.etree.ElementTree as ET
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_billpay_pmt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.billpay.pmt """
"""Unit tests for models.billpay.pmt"""
# stdlib imports
import unittest
from xml.etree.ElementTree import Element, SubElement
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_billpay_recur.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.billpay.recur """
"""Unit tests for models.billpay.recur"""
# stdlib imports
import unittest
from decimal import Decimal
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_billpay_sync.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.billpay.sync """
"""Unit tests for models.billpay.sync"""
# stdlib imports
import unittest
import xml.etree.ElementTree as ET
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_common.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.common """
"""Unit tests for models.common"""
# stdlib imports
import unittest
from datetime import datetime
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_email.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.email """
"""Unit tests for models.email"""
# stdlib imports
import unittest
from xml.etree.ElementTree import Element, SubElement
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_i18n.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models/common.py """
"""Unit tests for models/common.py"""
# stdlib imports
import unittest
from decimal import Decimal
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_invest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.invest """
"""Unit tests for models.invest"""
# stdlib imports
import unittest
from xml.etree.ElementTree import Element, SubElement
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_invest_oo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.invest """
"""Unit tests for models.invest"""
# stdlib imports
import unittest
from xml.etree.ElementTree import Element, SubElement
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_invest_transactions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.invest """
"""Unit tests for models.invest"""
# stdlib imports
import unittest
from xml.etree.ElementTree import Element, SubElement
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_ofx.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.ofx """
"""Unit tests for models.ofx"""
# stdlib imports
import unittest
from xml.etree.ElementTree import Element
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_profile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.profile """
"""Unit tests for models.profile"""
# stdlib imports
import unittest
from xml.etree.ElementTree import Element, SubElement
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_securities.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for ofxtools.models.seclist """
"""Unit tests for ofxtools.models.seclist"""

# stdlib imports
import unittest
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_signon.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for models.signon """
"""Unit tests for models.signon"""
# stdlib imports
import unittest
from xml.etree.ElementTree import Element, SubElement
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models_signup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for ofxtools.models.signup """
"""Unit tests for ofxtools.models.signup"""
# stdlib imports
import unittest
from xml.etree.ElementTree import Element, SubElement
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ofxget.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for ofxtools.ofxget """
"""Unit tests for ofxtools.ofxget"""

# stdlib imports
import unittest
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ofxhome.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for ofxtools.ofxhome """
"""Unit tests for ofxtools.ofxhome"""

# stdlib imports
import unittest
Expand Down
2 changes: 1 addition & 1 deletion tests/test_parser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for ofxtools.Parser """
"""Unit tests for ofxtools.Parser"""

# stdlib imports
import unittest
Expand Down
10 changes: 5 additions & 5 deletions tests/test_types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for ofxtools.Types """
"""Unit tests for ofxtools.Types"""
# stdlib imports
import unittest
import decimal
Expand Down Expand Up @@ -410,7 +410,7 @@ def test_unconvert_roundtrip(self):
self.assertEqual(t.convert(t.unconvert(value)), value)


class TestingTimezone(datetime.tzinfo):
class _TestingTimezone(datetime.tzinfo):
"""Timezone info class for testing purposes"""

def __init__(self, name: str, offset: datetime.timedelta):
Expand All @@ -427,9 +427,9 @@ def tzname(self, dst: Optional[datetime.datetime]) -> Optional[str]:
return self.name


CST = TestingTimezone("CST", datetime.timedelta(hours=-6))
IST = TestingTimezone("IST", datetime.timedelta(hours=5, minutes=30))
NST = TestingTimezone("NST", datetime.timedelta(hours=-3.5))
CST = _TestingTimezone("CST", datetime.timedelta(hours=-6))
IST = _TestingTimezone("IST", datetime.timedelta(hours=5, minutes=30))
NST = _TestingTimezone("NST", datetime.timedelta(hours=-3.5))


class DateTimeTestCase(unittest.TestCase, Base):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
""" Unit tests for ofxtools.utils """
"""Unit tests for ofxtools.utils"""
# stdlib imports
import unittest
import os
Expand Down