diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index 7bbf485..29b391d 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -24,7 +24,7 @@ jobs: - name: Install black run: | - pip install black>=23 + pip install black>=24 - name: Lint run: black --check . diff --git a/env.yml b/env.yml index 5073505..5a21ee3 100644 --- a/env.yml +++ b/env.yml @@ -32,7 +32,7 @@ dependencies: - pytest-xdist - pytest-cov - nbconvert - - black >=23 + - black >=24 - ruff - jupyterlab - ipywidgets diff --git a/medchem/structural/_common.py b/medchem/structural/_common.py index 1a5135a..60f25bb 100644 --- a/medchem/structural/_common.py +++ b/medchem/structural/_common.py @@ -187,7 +187,9 @@ def __call__( scheduler = "threads" if batch_size: results = dm.parallelized_with_batches( - lambda batch: [functools.partial(self._evaluate, keep_details=keep_details)(mol) for mol in batch], + lambda batch: [ + functools.partial(self._evaluate, keep_details=keep_details)(mol) for mol in batch + ], mols, progress=progress, n_jobs=n_jobs,