From 094d94eb48e8f228a538de0b15f163215b2c4e9e Mon Sep 17 00:00:00 2001 From: Tuomas Karna Date: Thu, 7 Nov 2024 13:54:55 +0200 Subject: [PATCH] pre-commit code formatting --- .pre-commit-config.yaml | 6 +++--- test/test_manip.py | 2 +- test/test_spmd.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index edaea21..b51ace9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-ast - id: check-builtin-literals @@ -19,13 +19,13 @@ repos: - id: trailing-whitespace exclude: '.*\.patch' - repo: https://github.com/psf/black - rev: 24.8.0 + rev: 24.10.0 hooks: - id: black args: ["--line-length", "80"] language_version: python3 - repo: https://github.com/PyCQA/bandit - rev: '1.7.9' + rev: '1.7.10' hooks: - id: bandit args: ["-c", ".bandit.yml"] diff --git a/test/test_manip.py b/test/test_manip.py index f2e6bcd..cae47cc 100644 --- a/test/test_manip.py +++ b/test/test_manip.py @@ -3,10 +3,10 @@ import numpy import pytest -from mpi4py import MPI from utils import device, runAndCompare import sharpy as sp +from mpi4py import MPI class TestManip: diff --git a/test/test_spmd.py b/test/test_spmd.py index a39eb23..e0fd5cb 100644 --- a/test/test_spmd.py +++ b/test/test_spmd.py @@ -1,9 +1,9 @@ import numpy as np import pytest -from mpi4py import MPI from utils import device import sharpy as sp +from mpi4py import MPI from sharpy import _sharpy_cw