diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f98c4dc..7530b7e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,6 +24,6 @@ repos: hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 7.2.0 + rev: 7.3.0 hooks: - id: flake8 diff --git a/tests/test_thirdparty.py b/tests/test_thirdparty.py index 563a410..31f1846 100644 --- a/tests/test_thirdparty.py +++ b/tests/test_thirdparty.py @@ -190,7 +190,7 @@ def test_pandas(): ) # Pandas 1.5 changed the API for to_csv() - if tuple(int(v) for v in __version__.split(".")) < (1, 5): + if tuple(int(v) for v in __version__.split(".")[:2]) < (1, 5): kwargs = dict(line_terminator="\n") else: kwargs = dict(lineterminator="\n")