From d6e527d5f7e7d4d2719d26573c3d2f4d1e6444b4 Mon Sep 17 00:00:00 2001 From: Evan Hubinger Date: Thu, 6 Jun 2024 21:20:03 -0700 Subject: [PATCH] Bump dependencies --- .pre-commit-config.yaml | 2 +- coconut/constants.py | 8 ++++---- coconut/tests/main_test.py | 3 ++- coconut/tests/src/cocotest/agnostic/primary_2.coco | 1 + 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c7868a2d8..e1ea9b6af 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - --experimental - --ignore=W503,E501,E722,E402,E721 - repo: https://github.com/pre-commit/pre-commit-hooks.git - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: fix-byte-order-marker diff --git a/coconut/constants.py b/coconut/constants.py index 522faeec0..e0368a992 100644 --- a/coconut/constants.py +++ b/coconut/constants.py @@ -1043,7 +1043,7 @@ def get_path_env_var(env_var, default): ("argparse", "py<27"): (1, 4), "pexpect": (4,), ("trollius", "py<3;cpy"): (2, 2), - "requests": (2, 31), + "requests": (2, 32), ("numpy", "py39"): (1, 26), ("xarray", "py39"): (2024,), ("dataclasses", "py==36"): (0, 8), @@ -1055,14 +1055,14 @@ def get_path_env_var(env_var, default): "pyright": (1, 1), ("jupyter-console", "py37"): (6, 6), ("typing", "py<35"): (3, 10), - ("typing_extensions", "py>=38"): (4, 11), + ("typing_extensions", "py>=38"): (4, 12), ("ipykernel", "py38"): (6,), ("jedi", "py39"): (0, 19), - ("pygments", "py>=39"): (2, 17), + ("pygments", "py>=39"): (2, 18), ("xonsh", "py39"): (0, 16), ("async_generator", "py35"): (1, 10), ("exceptiongroup", "py37;py<311"): (1,), - ("ipython", "py>=310"): (8, 24), + ("ipython", "py>=310"): (8, 25), "py-spy": (0, 3), } diff --git a/coconut/tests/main_test.py b/coconut/tests/main_test.py index 83c937d40..f1451e1e3 100644 --- a/coconut/tests/main_test.py +++ b/coconut/tests/main_test.py @@ -179,7 +179,8 @@ def pexpect(p, out): "from distutils.version import LooseVersion", ": SyntaxWarning: 'int' object is not ", ": CoconutWarning: Deprecated use of ", - " assert_raises(", + " assert_raises(", + " assert ", "Populating initial parsing cache", "_coconut.warnings.warn(", ": SyntaxWarning: invalid escape sequence", diff --git a/coconut/tests/src/cocotest/agnostic/primary_2.coco b/coconut/tests/src/cocotest/agnostic/primary_2.coco index be581e692..902ff5f0b 100644 --- a/coconut/tests/src/cocotest/agnostic/primary_2.coco +++ b/coconut/tests/src/cocotest/agnostic/primary_2.coco @@ -465,6 +465,7 @@ def primary_test_2() -> bool: "{x}" """ == '\n"2"\n' assert f"\{1}" == "\\1" + assert f''' '{1}' ''' == " 1 " with process_map.multiple_sequential_calls(): # type: ignore assert map((+), range(3), range(4)$[:-1], strict=True) |> list == [0, 2, 4] == process_map((+), range(3), range(4)$[:-1], strict=True) |> list # type: ignore