Compare commits
10 Commits
d29793f064
...
v0.4.0
Author | SHA1 | Date | |
---|---|---|---|
387565605e | |||
759e6f3703
|
|||
09d43d3426
|
|||
cbcfc8604f
|
|||
34a601424b
|
|||
0096581595
|
|||
9fd0704156 | |||
11eddfab68 | |||
78de092a45 | |||
860ecadb88 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -154,6 +154,7 @@ cython_debug/
|
|||||||
|
|
||||||
|
|
||||||
# Custom
|
# Custom
|
||||||
|
.mise.toml
|
||||||
.vscode/
|
.vscode/
|
||||||
.venv_linux/
|
.venv_linux/
|
||||||
.venv_windows/
|
.venv_windows/
|
||||||
|
@@ -3,6 +3,15 @@
|
|||||||
"extends": [
|
"extends": [
|
||||||
"config:base"
|
"config:base"
|
||||||
],
|
],
|
||||||
|
"baseBranches": [
|
||||||
|
"dev"
|
||||||
|
],
|
||||||
|
"pip_requirements": {
|
||||||
|
"fileMatch": [
|
||||||
|
"requirements/.*\\.txt$"
|
||||||
|
],
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"matchUpdateTypes": [
|
"matchUpdateTypes": [
|
||||||
|
@@ -39,6 +39,7 @@ dependencies = { file = "requirements/_.txt" }
|
|||||||
|
|
||||||
[tool.setuptools.dynamic.optional-dependencies]
|
[tool.setuptools.dynamic.optional-dependencies]
|
||||||
dev = { file = "requirements/dev.txt" }
|
dev = { file = "requirements/dev.txt" }
|
||||||
|
dist = { file = "requirements/dist.txt" }
|
||||||
speed = { file = "requirements/speed.txt" }
|
speed = { file = "requirements/speed.txt" }
|
||||||
|
|
||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.packages.find]
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
requests~=2.32.0
|
requests~=2.32.3
|
||||||
xmltodict~=0.13.0
|
xmltodict~=0.13.0
|
||||||
isodate~=0.6.1
|
isodate~=0.6.1
|
@@ -1,12 +1,12 @@
|
|||||||
black~=24.8.0
|
black~=24.8.0
|
||||||
build==1.2.2
|
|
||||||
isort==5.13.2
|
isort==5.13.2
|
||||||
mypy~=1.11.0
|
mypy~=1.11.2
|
||||||
pylint==3.2.7
|
pylint==3.2.7
|
||||||
pytest-asyncio~=0.24.0
|
|
||||||
pytest-cov~=5.0.0
|
pytest-cov~=5.0.0
|
||||||
pytest~=8.3.1
|
pytest~=8.3.2
|
||||||
tox==4.18.0
|
tox==4.18.1
|
||||||
twine~=5.1.0
|
|
||||||
types-aiofiles~=24.1.0.20240626
|
|
||||||
types-ujson~=5.10.0.20240515
|
types-ujson~=5.10.0.20240515
|
||||||
|
|
||||||
|
# Disabled async libraries for now
|
||||||
|
# types-aiofiles~=24.1.0.20240626
|
||||||
|
# pytest-asyncio~=0.24.0
|
2
requirements/dist.txt
Normal file
2
requirements/dist.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
build==1.2.2
|
||||||
|
twine~=5.1.1
|
@@ -21,7 +21,7 @@ trip = client.trip_find(origin_id=origin.id, dest_id=destination.id)
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
__name__ = "pyrmv"
|
__name__ = "pyrmv"
|
||||||
__version__ = "0.4.0-rc.2"
|
__version__ = "0.4.0"
|
||||||
__license__ = "MIT License"
|
__license__ = "MIT License"
|
||||||
__author__ = "Profitroll"
|
__author__ = "Profitroll"
|
||||||
|
|
||||||
|
@@ -20,9 +20,12 @@ def test_board_departure(api_client: Client, sample_stop_id: str):
|
|||||||
|
|
||||||
|
|
||||||
def test_him_search(api_client: Client):
|
def test_him_search(api_client: Client):
|
||||||
assert isinstance(
|
response = api_client.him_search(time_end=datetime.now() + timedelta(days=10))
|
||||||
api_client.him_search(time_end=datetime.now() + timedelta(days=10))[0], Message
|
|
||||||
)
|
if len(response) != 0:
|
||||||
|
assert isinstance(response[0], Message)
|
||||||
|
else:
|
||||||
|
assert isinstance(response, list)
|
||||||
|
|
||||||
|
|
||||||
def test_journey_detail(api_client: Client, sample_journey_id: str):
|
def test_journey_detail(api_client: Client, sample_journey_id: str):
|
||||||
|
Reference in New Issue
Block a user