Skip to content

Commit

Permalink
Merge pull request #29 from datamol-io/lint
Browse files Browse the repository at this point in the history
linting with black
  • Loading branch information
maclandrol authored Nov 18, 2024
2 parents a17bc12 + 6f5d6bd commit c2e0977
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Install black
run: |
pip install black>=23
pip install black>=24
- name: Lint
run: black --check .
Expand Down
2 changes: 1 addition & 1 deletion env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies:
- pytest-xdist
- pytest-cov
- nbconvert
- black >=23
- black >=24
- ruff
- jupyterlab
- ipywidgets
Expand Down
4 changes: 3 additions & 1 deletion medchem/structural/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c2e0977

Please sign in to comment.