Skip to content

Commit 72e9e6f

Browse files
committed
Merge branch 'MainRo-bugfix/poetry-install' into update-actions-cache
2 parents 24843b0 + b0f600c commit 72e9e6f

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222

2323
- name: Install dependencies
2424
run: |
25+
pip install --upgrade pip
2526
pip install poetry
2627
poetry install
2728

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,33 @@ repos:
44
- --remove-all-unused-imports
55
- --in-place
66
id: autoflake
7-
repo: https://github.com/humitos/mirrors-autoflake
8-
rev: v1.1
7+
repo: https://github.com/PyCQA/autoflake
8+
rev: v2.3.1
99
- hooks:
1010
- id: isort
1111
repo: https://github.com/timothycrosley/isort
12-
rev: 5.10.1
12+
rev: 5.13.2
1313
- hooks:
1414
- id: black
1515
repo: https://github.com/psf/black
16-
rev: 22.3.0
16+
rev: 24.10.0
1717
- hooks:
1818
- id: flake8
1919
exclude: (^docs/|^examples/|^notebooks/|^tests/)
2020
repo: https://github.com/PyCQA/flake8
21-
rev: 3.9.2
21+
rev: 7.1.1
2222
- hooks:
2323
- id: pyright
2424
name: pyright
2525
entry: pyright
2626
language: node
2727
pass_filenames: false
2828
types: [python]
29-
additional_dependencies: ["[email protected].286"]
29+
additional_dependencies: ["[email protected].388"]
3030
repo: local
3131
- hooks:
3232
- id: mypy
3333
exclude: (^docs/|^examples/|^notebooks/|^tests/|^reactivex/operators/_\w.*\.py$)
3434
repo: https://github.com/pre-commit/mirrors-mypy
35-
rev: v0.942
35+
rev: v1.13.0
3636

tests/test_observable/test_takeuntilwithtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_takeuntil_zero(self):
3030
)
3131

3232
def create():
33-
return xs.pipe(ops.take_until_with_time(datetime.fromtimestamp(0)), tz=timezone.utc)
33+
return xs.pipe(ops.take_until_with_time(datetime.fromtimestamp(0, tz=timezone.utc)))
3434

3535
res = scheduler.start(create)
3636

tests/test_scheduler/test_historicalscheduler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import unittest
2-
from datetime import datetime, timedelta
2+
from datetime import datetime, timedelta, timezone
33

44
from reactivex.internal.constants import UTC_ZERO
55
from reactivex.scheduler import HistoricalScheduler
@@ -20,7 +20,7 @@ def assert_equals(first, second):
2020

2121

2222
def time(days):
23-
dt = datetime(year=1979, month=10, day=31, hour=4, minute=30, second=15)
23+
dt = datetime(year=1979, month=10, day=31, hour=4, minute=30, second=15, tzinfo=timezone.utc)
2424
dt = dt + timedelta(days=days)
2525
return dt
2626

0 commit comments

Comments
 (0)