Skip to content

Commit

Permalink
Update black
Browse files Browse the repository at this point in the history
  • Loading branch information
jmp1985 committed Feb 6, 2024
1 parent a83d738 commit 224724c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/ambv/black
rev: 23.1.0
rev: 24.1.1
hooks:
- id: black
args: [--safe]
Expand All @@ -12,7 +12,7 @@ repos:
args: ['--max-line-length=88', '--select=W291,W292,W293,F401']
language_version: python3
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.991'
rev: 'v1.8.0'
hooks:
- id: mypy
args: []
Expand Down
8 changes: 5 additions & 3 deletions src/parakeet/sample/_add_molecules.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,11 @@ def _add_molecules_Sample(config: parakeet.config.Sample, sample: Sample) -> Sam
# Set the instances
temp[key] = {
"type": origin,
"instances": [{} for i in range(instances)]
if isinstance(instances, int)
else instances,
"instances": (
[{} for i in range(instances)]
if isinstance(instances, int)
else instances
),
}

molecules = temp
Expand Down

0 comments on commit 224724c

Please sign in to comment.