Skip to content

Commit daaa5f6

Browse files
committed
updating pre-commit
1 parent d7de931 commit daaa5f6

9 files changed

+12
-7
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.5.0
5+
rev: v4.6.0
66
hooks:
77
- id: check-ast
88
- id: check-builtin-literals
@@ -19,13 +19,13 @@ repos:
1919
- id: trailing-whitespace
2020
exclude: '.*\.patch'
2121
- repo: https://github.com/psf/black
22-
rev: 23.12.0
22+
rev: 24.3.0
2323
hooks:
2424
- id: black
2525
args: ["--line-length", "80"]
2626
language_version: python3
2727
- repo: https://github.com/PyCQA/bandit
28-
rev: '1.7.7'
28+
rev: '1.7.8'
2929
hooks:
3030
- id: bandit
3131
args: ["-c", ".bandit.yml"]
@@ -35,7 +35,7 @@ repos:
3535
- id: isort
3636
name: isort (python)
3737
- repo: https://github.com/pycqa/flake8
38-
rev: 5.0.4
38+
rev: 7.0.0
3939
hooks:
4040
- id: flake8
4141
- repo: https://github.com/pocc/pre-commit-hooks

examples/black_scholes.py

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
python black_scholes.py -p M16Gb -b numpy
2323
2424
"""
25+
2526
import argparse
2627
import os
2728
import time as time_mod

examples/shallow_water.py

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
python shallow_water.py -b numpy ...
2424
2525
"""
26+
2627
import argparse
2728
import math
2829
import os

examples/wave_equation.py

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
python wave_equation.py -b numpy ...
2424
2525
"""
26+
2627
import argparse
2728
import math
2829
import os

sharpy/array_api.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
distributed implementation of the array API as defined here:
44
https://data-apis.org/array-api/latest
55
"""
6+
67
from collections import OrderedDict
78

89
api_categories = OrderedDict(

sharpy/ndarray.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
The array class for sharpy, a distributed implementation of the
33
array API as defined here: https://data-apis.org/array-api/latest
44
"""
5+
56
#
67
# See __init__.py for an implementation overview
78
#

src/LinAlgOp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
#include <mpi.h>
8-
//#include <mkl.h>
8+
// #include <mkl.h>
99
#include "sharpy/Factory.hpp"
1010
#include "sharpy/LinAlgOp.hpp"
1111
#include "sharpy/NDArray.hpp"

src/_sharpy.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void init(bool cw, const std::string &libidtr) {
149149
VT(VT_begin, vtWaitSym); \
150150
py::gil_scoped_release release; \
151151
Service::run(); \
152-
auto r = (_f).get().get() -> _a(); \
152+
auto r = (_f).get().get()->_a(); \
153153
VT(VT_end, vtWaitSym); \
154154
return r
155155

test/test_spmd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import numpy as np
22
import pytest
3+
from mpi4py import MPI
34
from utils import device
45

56
import sharpy as sp
6-
from mpi4py import MPI
77
from sharpy import _sharpy_cw
88

99

0 commit comments

Comments
 (0)