Skip to content

Commit

Permalink
Merge pull request #33 from pyt-team/frantzen-black
Browse files Browse the repository at this point in the history
Update black to 2023 stable style
  • Loading branch information
mhajij authored Oct 26, 2023
2 parents 71887e4 + 90cfe30 commit 85638fd
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
default_language_version :
python : python3
default_language_version:
python: python3.10

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
Expand All @@ -18,7 +19,7 @@ repos:
- id: requirements-txt-fixer

- repo: https://github.com/psf/black
rev: 22.3.0
rev: 23.10.1
hooks:
- id: black

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ doc = [
"pydata-sphinx-theme"
]
lint = [
"black < 23.0",
"black < 24.0",
"black[jupyter]",
"flake8",
"flake8-docstrings",
Expand Down
1 change: 0 additions & 1 deletion test/test_tutorials.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


def _exec_tutorial(path):

file_name = tempfile.NamedTemporaryFile(suffix=".ipynb").name
args = [
"jupyter",
Expand Down
1 change: 0 additions & 1 deletion topoembedx/classes/cell2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def __init__(
min_count: int = 1,
seed: int = 42,
):

super().__init__(
walk_number=walk_number,
walk_length=walk_length,
Expand Down
1 change: 0 additions & 1 deletion topoembedx/classes/higher_order_laplacian_eigenmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def __init__(
maximum_number_of_iterations: int = 100,
seed: int = 42,
):

super().__init__(
dimensions=dimensions,
seed=seed,
Expand Down
1 change: 0 additions & 1 deletion topoembedx/classes/hoglee.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class HOGLEE(GLEE):
"""

def __init__(self, dimensions: int = 3, seed: int = 42):

super().__init__(dimensions=dimensions, seed=seed)

self.A = []
Expand Down
5 changes: 2 additions & 3 deletions topoembedx/classes/random_walks.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def transition_from_adjacency(A, sub_sampling=0.1, self_loop=True):
Returns
-------
_ : numpy.ndarray
numpy.ndarray
The transition matrix.
Example
Expand All @@ -70,7 +70,6 @@ def transition_from_adjacency(A, sub_sampling=0.1, self_loop=True):
"""

def _transition_from_adjacency(A):

if scipy.sparse.issparse(A):
A = A.todense()

Expand Down Expand Up @@ -134,7 +133,7 @@ def random_walk(length, num_walks, states, transition_matrix):
Returns
-------
_ : list of list of str
list of list of str
The generated random walks.
Example
Expand Down

0 comments on commit 85638fd

Please sign in to comment.