Skip to content

Commit

Permalink
fix: make pre-commit pass
Browse files Browse the repository at this point in the history
  • Loading branch information
f3rmion committed Sep 14, 2023
1 parent 6e1edf8 commit 39e04bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/black.yml

This file was deleted.

4 changes: 2 additions & 2 deletions src/kallisto/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def createUnits(version):

try:
units = Units(codata[version])
except KeyError:
raise NotImplementedError("Codata {0} not found".format(version))
except KeyError as err:
raise NotImplementedError("Codata {0} not found".format(version)) from err

# Define all units
# permittivity of vacuum
Expand Down
2 changes: 1 addition & 1 deletion tests/test_molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_user_can_calculate_eeq_atomic_charges(lithium_hydride_coord):
molecule = Molecule(symbols=atoms)
eeq = molecule.get_eeq(charge=0)
want = [0.51925854, -0.35007273, -0.16918582]
difference = sum([a - b for a, b in zip(want, eeq)])
difference = sum([a - b for a, b in zip(want, eeq, strict=True)])
assert difference < 1e-6


Expand Down

0 comments on commit 39e04bf

Please sign in to comment.