Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#44)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/PyCQA/docformatter: v1.5.1 → v1.6.0.rc1](PyCQA/docformatter@v1.5.1...v1.6.0.rc1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Jan 24, 2023
1 parent 38a30dd commit f6afc22
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/PyCQA/docformatter
rev: v1.5.1
rev: v1.6.0.rc1
hooks:
- id: docformatter
args: [--in-place, --pre-summary-newline, --make-summary-multi]
Expand Down
1 change: 0 additions & 1 deletion pyflct/tests/test_flct.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def test_flct_optional(images_dat):
increase the test coverage for lines containing the setting of
optional arguments.
"""

_ = flct.flct(
images_dat[0],
images_dat[1],
Expand Down
3 changes: 0 additions & 3 deletions pyflct/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def test_two_read_write(arrays_test):
This test is written to veify that the wrapped function is able to
correctly write and read two numpy arrays.
"""

# Here a temporary dat file is created and two numpy arrays are written in it.
file_name = "temp.dat"

Expand Down Expand Up @@ -78,7 +77,6 @@ def test_three_read_write(arrays_test):
This test is written to verify that the wrapped function is able to
correctly write and read three numpy arrays.
"""

# Here a temporary dat file is created and three numpy arrays are written in it.
file_name = "temp.dat"

Expand Down Expand Up @@ -134,7 +132,6 @@ def test_swaps(arrays_test):
they will be converted to binary format and read in column major or
row major their values won't change.
"""

# This is to change the order of two arrays at a time.
result_a, result_b = column_row_of_two(arrays_test[0], arrays_test[1])

Expand Down
6 changes: 0 additions & 6 deletions pyflct/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def read_2_images(filename, order="row"):
`tuple`
A tuple containing two `~numpy.ndarray`.
"""

# Checking whether the C extension is correctly built.
if _pyflct is None:
raise ImportError("C extension for flct is missing, please rebuild.")
Expand Down Expand Up @@ -79,7 +78,6 @@ def read_3_images(filename, order="row"):
`tuple`
A tuple containing three `~numpy.ndarray`.
"""

# Checking whether the C extension is correctly built.
if _pyflct is None:
raise ImportError("C extension for flct is missing, please rebuild.")
Expand Down Expand Up @@ -117,7 +115,6 @@ def write_2_images(filename, array1, array2, order="row"):
The order in which the array elements are stored that is whether they are stored as row
major or column major. Defaults to "row".
"""

# Checking whether the C extension is correctly built.
if _pyflct is None:
raise ImportError("C extension for flct is missing, please rebuild.")
Expand Down Expand Up @@ -154,7 +151,6 @@ def write_3_images(filename, array1, array2, array3, order="row"):
The order in which the array elements are stored that is whether they are stored as row
major or column major. Defaults to "row".
"""

# Checking whether the C extension is correctly built.
if _pyflct is None:
raise ImportError("C extension for flct is missing, please rebuild.")
Expand Down Expand Up @@ -193,7 +189,6 @@ def column_row_of_two(array1, array2):
It returns the two input arrays after changing their order from column major to
row major.
"""

# Checking whether the C extension is correctly built.
if _pyflct is None:
raise ImportError("C extension for flct is missing, please rebuild.")
Expand Down Expand Up @@ -225,7 +220,6 @@ def column_row_of_three(array1, array2, array3):
It returns the two input arrays after changing their order from column major to
row major.
"""

# Checking whether the C extension is correctly built.
if _pyflct is None:
raise ImportError("C extension for flct is missing, please rebuild.")
Expand Down

0 comments on commit f6afc22

Please sign in to comment.