From 3ed0df1169f43d28c493fdbd485d24feb4e00782 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Mon, 14 Feb 2022 07:42:06 +0000 Subject: [PATCH] update black to 22.1.0 --- noxfile.py | 2 +- pytests/tests/test_othermod.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/noxfile.py b/noxfile.py index 91b6b922..f6b85e1b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -40,7 +40,7 @@ def fmt_rust(session: nox.Session): @nox.session(name="fmt-py") def fmt_py(session: nox.Session): - session.install("black==21.12b0") + session.install("black==22.1.0") session.run("black", ".", "--check") diff --git a/pytests/tests/test_othermod.py b/pytests/tests/test_othermod.py index 08ac367a..ff67bba4 100644 --- a/pytests/tests/test_othermod.py +++ b/pytests/tests/test_othermod.py @@ -3,14 +3,14 @@ from hypothesis import strategies as st from pyo3_pytests import othermod -INTEGER32_ST = st.integers(min_value=(-(2 ** 31)), max_value=(2 ** 31 - 1)) +INTEGER32_ST = st.integers(min_value=(-(2**31)), max_value=(2**31 - 1)) USIZE_ST = st.integers(min_value=othermod.USIZE_MIN, max_value=othermod.USIZE_MAX) @given(x=INTEGER32_ST) def test_double(x): expected = x * 2 - assume(-(2 ** 31) <= expected <= (2 ** 31 - 1)) + assume(-(2**31) <= expected <= (2**31 - 1)) assert othermod.double(x) == expected