Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 29, 2024
1 parent c408124 commit 2c78911
Show file tree
Hide file tree
Showing 17 changed files with 49 additions and 19 deletions.
1 change: 0 additions & 1 deletion cclib/attribute_parsers/atombasis.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np

Expand Down
3 changes: 2 additions & 1 deletion cclib/attribute_parsers/atomcharges.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np

Expand Down
4 changes: 3 additions & 1 deletion cclib/attribute_parsers/atomcoords.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np


Expand Down
4 changes: 3 additions & 1 deletion cclib/attribute_parsers/atommasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np


Expand Down
4 changes: 3 additions & 1 deletion cclib/attribute_parsers/atomnos.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np


Expand Down
4 changes: 3 additions & 1 deletion cclib/attribute_parsers/charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np


Expand Down
4 changes: 3 additions & 1 deletion cclib/attribute_parsers/coreelectrons.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np


Expand Down
9 changes: 6 additions & 3 deletions cclib/attribute_parsers/gbasis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
import re
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np
import re


class gbasis(base_parser):
"""
Docstring? Units?
"""

known_codes = ["gaussian","psi4","qchem"]
known_codes = ["gaussian", "psi4", "qchem"]

@staticmethod
def gaussian(file_handler, ccdata) -> Optional[dict]:
Expand Down
4 changes: 3 additions & 1 deletion cclib/attribute_parsers/mocoeffs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np


Expand Down
4 changes: 3 additions & 1 deletion cclib/attribute_parsers/mosyms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np


Expand Down
4 changes: 3 additions & 1 deletion cclib/attribute_parsers/mult.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np


Expand Down
6 changes: 4 additions & 2 deletions cclib/attribute_parsers/natom.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np


Expand All @@ -13,7 +15,7 @@ class natom(base_parser):
Docstring? Units?
"""

known_codes = ["gaussian", "psi4","qchem"]
known_codes = ["gaussian", "psi4", "qchem"]

@staticmethod
def gaussian(file_handler, ccdata) -> Optional[dict]:
Expand Down
4 changes: 3 additions & 1 deletion cclib/attribute_parsers/nbasis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np


Expand Down
4 changes: 3 additions & 1 deletion cclib/attribute_parsers/nmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np


Expand Down
3 changes: 2 additions & 1 deletion cclib/attribute_parsers/scfenergies.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional


class scfenergies(base_parser):
Expand Down
5 changes: 4 additions & 1 deletion cclib/attribute_parsers/scftargets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
from typing import Optional

from cclib.attribute_parsers import utils
from cclib.attribute_parsers.base_parser import base_parser
from typing import Optional

import numpy as np


class scftargets(base_parser):
"""
Docstring? Units?
Expand Down
1 change: 1 addition & 0 deletions test/data/testSP.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ class GenericDispersionTest:
"""Generic single-geometry dispersion correction unittest"""

dispersionenergy = -0.4005496

@skipForParser("QChem", "this property has yet to be ported for version 2")
def testdispersionenergies(self, data) -> None:
"""Is the dispersion energy parsed correctly?"""
Expand Down

0 comments on commit 2c78911

Please sign in to comment.