12 Commits

Author SHA1 Message Date
5082b803a0 Merge pull request 'v0.5.0' (#87) from dev into master
Reviewed-on: #87
2025-05-05 01:06:48 +03:00
01d6831de0 Upgrade to version to 0.5.0
All checks were successful
Tests / test (3.10) (push) Successful in 30s
Tests / test (3.11) (push) Successful in 26s
Tests / test (3.12) (push) Successful in 34s
Tests / test (3.9) (push) Successful in 27s
Tests / test (3.10) (pull_request) Successful in 27s
Tests / test (3.11) (pull_request) Successful in 29s
Tests / test (3.12) (pull_request) Successful in 35s
Tests / test (3.9) (pull_request) Successful in 27s
2025-05-05 00:05:16 +02:00
00a772cb6a Update dependency pylint to ==3.3.7,<3.4.0
All checks were successful
Tests / test (3.10) (pull_request) Successful in 28s
Tests / test (3.11) (pull_request) Successful in 27s
Tests / test (3.12) (pull_request) Successful in 35s
Tests / test (3.9) (pull_request) Successful in 30s
Tests / test (3.10) (push) Successful in 27s
Tests / test (3.11) (push) Successful in 26s
Tests / test (3.12) (push) Successful in 31s
Tests / test (3.9) (push) Successful in 25s
2025-05-05 00:27:59 +03:00
6ade6f7554 Fixed altStart and altEnd not being provided causing KeyError
All checks were successful
Tests / test (3.10) (push) Successful in 29s
Tests / test (3.11) (push) Successful in 28s
Tests / test (3.12) (push) Successful in 37s
Tests / test (3.9) (push) Successful in 27s
2025-05-04 23:26:12 +02:00
c17a9d4206 Update dependency pytest-cov to ~=6.1.0
All checks were successful
Tests / test (3.10) (pull_request) Successful in 37s
Tests / test (3.11) (pull_request) Successful in 36s
Tests / test (3.12) (pull_request) Successful in 44s
Tests / test (3.9) (pull_request) Successful in 36s
Tests / test (3.10) (push) Successful in 45s
Tests / test (3.11) (push) Successful in 36s
Tests / test (3.12) (push) Successful in 44s
Tests / test (3.9) (push) Successful in 37s
2025-04-01 14:38:49 +03:00
389582255f Merge pull request 'Update dependency tox to v4.25.0' (#84) from renovate/tox-4.x into dev
All checks were successful
Tests / test (3.10) (push) Successful in 40s
Tests / test (3.11) (push) Successful in 38s
Tests / test (3.12) (push) Successful in 48s
Tests / test (3.9) (push) Successful in 42s
Reviewed-on: #84
2025-03-27 17:57:54 +02:00
89bfea3f8b Update dependency tox to v4.25.0
All checks were successful
Tests / test (3.10) (pull_request) Successful in 43s
Tests / test (3.11) (pull_request) Successful in 41s
Tests / test (3.12) (pull_request) Successful in 48s
Tests / test (3.9) (pull_request) Successful in 39s
2025-03-27 17:30:59 +02:00
668f05f7f2 Merge pull request 'Update dependency pylint to ==3.3.6,<3.4.0' (#83) from renovate/pylint-3.x into dev
All checks were successful
Tests / test (3.10) (push) Successful in 44s
Tests / test (3.11) (push) Successful in 40s
Tests / test (3.9) (push) Successful in 40s
Tests / test (3.12) (push) Successful in 48s
Reviewed-on: #83
2025-03-20 15:11:56 +02:00
c6d7e8733a Update dependency pylint to ==3.3.6,<3.4.0
All checks were successful
Tests / test (3.10) (pull_request) Successful in 42s
Tests / test (3.12) (pull_request) Successful in 53s
Tests / test (3.9) (pull_request) Successful in 41s
Tests / test (3.11) (pull_request) Successful in 40s
2025-03-20 13:41:06 +02:00
387565605e Merge pull request 'v0.4.0' (#53) from dev into master
Reviewed-on: #53
2024-09-08 02:54:11 +03:00
78de092a45 Changed pip_requirements location 2024-03-26 14:26:56 +02:00
860ecadb88 Renovate will use dev branch as a main one 2024-03-26 14:14:35 +02:00
4 changed files with 17 additions and 6 deletions

View File

@@ -3,6 +3,15 @@
"extends": [
"config:base"
],
"baseBranches": [
"dev"
],
"pip_requirements": {
"fileMatch": [
"requirements/.*\\.txt$"
],
"enabled": true
},
"packageRules": [
{
"matchUpdateTypes": [

View File

@@ -1,10 +1,10 @@
black~=25.1.0
isort==5.13.2
mypy~=1.15.0
pylint==3.3.5,<3.4.0
pytest-cov~=6.0.0
pylint==3.3.7,<3.4.0
pytest-cov~=6.1.0
pytest~=8.3.2
tox==4.24.2
tox==4.25.0
types-ujson~=5.10.0.20240515
# Disabled async libraries for now

View File

@@ -21,7 +21,7 @@ trip = client.trip_find(origin_id=origin.id, dest_id=destination.id)
"""
__name__ = "pyrmv"
__version__ = "0.4.0"
__version__ = "0.5.0"
__license__ = "MIT License"
__author__ = "Profitroll"

View File

@@ -81,8 +81,10 @@ class Message:
f"{data['validToDate']} {data['validToTime']}", "%Y-%m-%d %H:%M:%S"
)
)
self.date_start_alt: str = data["altStart"]
self.date_end_alt: str = data["altEnd"]
self.date_start_alt: Union[str, None] = (
None if "altStart" not in data else data["altStart"]
)
self.date_end_alt: Union[str, None] = None if "altEnd" not in data else data["altEnd"]
self.time_modified: Union[datetime, None] = (
None
if "modDate" not in data or "modTime" not in data