Skip to content

Commit d142d51

Browse files
[pre-commit.ci] auto fixes from pre-commit hooks
1 parent dbd01bb commit d142d51

File tree

6 files changed

+18
-12
lines changed

6 files changed

+18
-12
lines changed

.codecov.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
coverage:
22
status:
3-
project: # more options at https://docs.codecov.com/docs/commit-status
3+
project: # more options at https://docs.codecov.com/docs/commit-status
44
default:
55
target: auto # use the coverage from the base commit, fail if coverage is lower
6-
threshold: 0% # allow the coverage to drop by
6+
threshold: 0% # allow the coverage to drop by
77

88
comment:
99
layout: " diff, flags, files"
1010
behavior: default
1111
require_changes: false
12-
require_base: false # [true :: must have a base report to post]
13-
require_head: false # [true :: must have a head report to post]
12+
require_base: false # [true :: must have a base report to post]
13+
require_head: false # [true :: must have a head report to post]
1414
hide_project_coverage: false # [true :: only show coverage on the git diff aka patch coverage]

src/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See LICENSE.txt for license information.
1313
#
1414
##############################################################################
15-
1615
"""nmf_mapping - tools for performing NMF on PDF and XRD data."""
1716

1817

src/diffpy/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See LICENSE.rst for license information.
1313
#
1414
##############################################################################
15-
16-
1715
"""Blank namespace package for module diffpy."""
1816

1917

src/diffpy/version.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See LICENSE.txt for license information.
1313
#
1414
##############################################################################
15-
1615
"""Definition of __version__ and __date__ for diffpy.nmf_mapping."""
1716

1817
__id__ = "$Id$"

tests/test_NMF_analysis_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
@pytest.fixture(scope="session")
2626
def temp_dir():
27-
"""A test fixture that creates and destroys tes outputs in a temporary
28-
directory.
27+
"""A test fixture that creates and destroys tes outputs in a
28+
temporary directory.
2929
3030
This will yield the path to the directory.
3131
"""

tests/test_load_data.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,19 @@ def test_load_data():
1313
bfto_dir = os.path.join(dir, "data/synthetic_r_vs_gr")
1414
bfto_expected_filenames = np.array([f"synthetic{i}" for i in range(50)])
1515
loaded_filenames = nmf.load_data(bfto_dir)[1]
16-
assert np.testing.assert_array_equal(loaded_filenames, bfto_expected_filenames) is None
16+
assert (
17+
np.testing.assert_array_equal(
18+
loaded_filenames, bfto_expected_filenames
19+
)
20+
is None
21+
)
1722

1823
# make sure interpolation to same r-grid is working
1924
diff_r_grid_dir = os.path.join(dir, "data", "different_r_grid")
2025
diff_r_grid_arr = nmf.load_data(diff_r_grid_dir)[0]
21-
assert np.testing.assert_array_equal(diff_r_grid_arr[0][:, 0], diff_r_grid_arr[1][:, 0]) is None
26+
assert (
27+
np.testing.assert_array_equal(
28+
diff_r_grid_arr[0][:, 0], diff_r_grid_arr[1][:, 0]
29+
)
30+
is None
31+
)

0 commit comments

Comments
 (0)