From 58e9e0697ed5fcb491d9836f77d57ad0d68d444d Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Tue, 15 Feb 2022 18:00:31 -0500 Subject: [PATCH] black using python 3.7 style --- .github/workflows/build.yml | 2 +- test/src/testing/universal/i2c.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 79c2575..0da2cc6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: run: git describe --dirty --always --tags - name: Check formatting run: | - black --check --target-version=py35 . + black --check --target-version=py37 . - name: PyLint run: | pylint $( find src -name '*.py' ) diff --git a/test/src/testing/universal/i2c.py b/test/src/testing/universal/i2c.py index 184fee4..ba74044 100644 --- a/test/src/testing/universal/i2c.py +++ b/test/src/testing/universal/i2c.py @@ -66,7 +66,7 @@ class TestMMA8451Interactive(TestCase): sensor = adafruit_mma8451.MMA8451(i2c) x, y, z = sensor.acceleration - absolute = math.sqrt(x ** 2 + y ** 2 + z ** 2) + absolute = math.sqrt(x**2 + y**2 + z**2) self.assertTrue(9 <= absolute <= 11, "Not earth gravity") orientation = sensor.orientation -- 2.49.0