Skip to content

Commit 94c00f4

Browse files
committed
more formatting, now ignoring flake8 W503
1 parent 9e6c6c8 commit 94c00f4

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

bhc/api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ def __repr__(self):
3737

3838
class AbstractPrior(ABC):
3939
@abstractmethod
40-
def calc_log_mlh(self, x_mat): ...
40+
def calc_log_mlh(self, x_mat):
41+
...
4142

4243

4344
class AbstractHierarchicalClustering(ABC):
4445
@abstractmethod
45-
def build(self): ...
46+
def build(self):
47+
...
4648

4749

4850
class AbstractBayesianBasedHierarchicalClustering(

bhc/core/prior.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def row_of_log_likelihood_for_pairs(
5858
# Pairwise sufficient statistics – only for j > i (batched)
5959
# ------------------------------------------------------------------
6060
# slice of points that matter
61-
Xj = X[i + 1 :] # shape (N-i-1, d)
61+
Xj = X[i + 1:] # shape (N-i-1, d)
6262
diff = X[i] - Xj # broadcasted automatically
6363
x_bar = 0.5 * (X[i] + Xj) # (N-i-1, d)
6464

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ parentdir_prefix = bhc-
99
[flake8]
1010
max-line-length = 79
1111
exclude = dist,build,versioneer.py,bhc/_*,setup.py
12-
ignore = BLK100
12+
extend-ignore = BLK100,W503
1313
max_complexity = 15
1414

1515
[tool:pytest]

0 commit comments

Comments
 (0)