Skip to content

Commit 2f58c4a

Browse files
committed
feat!: require python 3.12+
1 parent 013fd3a commit 2f58c4a

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Note: This is package is incomplete and still in initial development phase. The
44

55
Installation
66
------------
7-
Requires Python 3.10+.
7+
Requires Python 3.12+.
88

99
.. code-block:: bash
1010

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ classifiers = [
1010
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
1111
"Programming Language :: Python :: 3.10",
1212
]
13-
requires-python = ">=3.10"
13+
requires-python = ">=3.12"
1414
dynamic = ["version"]
1515
dependencies = [
16-
"aiohutils >= 0.11.0",
16+
"aiohutils >= 0.12.0",
1717
"beautifulsoup4",
1818
"jdatetime",
1919
"lxml",

tests/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from aiohutils.tests import init_tests, pytestmark # noqa: F401
1+
from aiohutils.tests import init_tests
22

33
init_tests()

tests/test_funds.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
string = StringDtype()
1616

1717

18-
def test_repr():
18+
def test_repr(aiolib):
1919
assert repr(fund) == 'Fund(11215)'
2020
assert repr(Fund('11215')) == "Fund('11215')"
2121

@@ -65,7 +65,7 @@ async def test_nav_history():
6565
async def test_info():
6666
info = await fund.info()
6767
assert len(info) >= 63
68-
assert type(info) is dict
68+
assert type(info) is dict # noqa: E721
6969

7070

7171
EXPECTED_INFERRED_DTYPES = {

tests/test_symbols.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async def test_search():
1616
assert symbols[0].l30 == 'كربن\u200c ايران\u200c'
1717

1818

19-
def test_symbol_from_name():
19+
def test_symbol_from_name(aiolib):
2020
assert f'{Symbol("فملی")!r}' == "Symbol('فملی')"
2121

2222

@@ -51,7 +51,7 @@ async def test_symbol_price_data():
5151
assert type(price_data.pop('Deven')) is jdatetime
5252
for key in ('changepdr', 'changepc'):
5353
assert type(price_data.pop(key)) in (int, float)
54-
assert all(type(v) is int for v in price_data.values())
54+
assert all(type(v) is int for v in price_data.values()) # noqa: E721
5555

5656

5757
@file('BestLimitDataFMelli.html')

0 commit comments

Comments
 (0)