From 7403710cf550b1ae650ee7cf9a31f71b5ae88d47 Mon Sep 17 00:00:00 2001 From: Daniel Pozsar Date: Tue, 29 Oct 2024 12:28:26 +0100 Subject: [PATCH] commented testing from pre-commit --- .pre-commit-config.yaml | 10 +++++----- tests/test_useful.py | 33 ++++++++++++++++----------------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 53abb35..d065163 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,11 +22,11 @@ repos: hooks: - id: isort args: ["--profile", "black", "--filter-files"] -#- repo: https://github.com/psf/black-pre-commit-mirror -# rev: 24.4.2 -# hooks: -# - id: black -# language_version: python3.9 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 24.4.2 + hooks: + - id: black + language_version: python3.9 #- repo: local # hooks: # - id: pytest-check diff --git a/tests/test_useful.py b/tests/test_useful.py index 0b44f8a..90016ab 100644 --- a/tests/test_useful.py +++ b/tests/test_useful.py @@ -55,24 +55,23 @@ def test_comm(a, b, c): [0.8, 0.0, 0.0], [0.9, 0.0, 0.0], ] - ) + ), ), - ( - "xy", - 3, - np.array( - [ - [0.0, 0.0, 0.0], - [0.33333333, 0.0, 0.0], - [0.66666667, 0.0, 0.0], - [0.0, 0.33333333, 0.0], - [0.0, 0.66666667, 0.0], - [0.33333333, 0.33333333, 0.0], - [0.33333333, 0.66666667, 0.0], - [0.66666667, 0.33333333, 0.0], - [0.66666667, 0.66666667, 0.0], - ] - ), + ( + "xy", + 3, + np.array( + [ + [0.0, 0.0, 0.0], + [0.33333333, 0.0, 0.0], + [0.66666667, 0.0, 0.0], + [0.0, 0.33333333, 0.0], + [0.0, 0.66666667, 0.0], + [0.33333333, 0.33333333, 0.0], + [0.33333333, 0.66666667, 0.0], + [0.66666667, 0.33333333, 0.0], + [0.66666667, 0.66666667, 0.0], + ] ), ), ],