Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#287)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.3.0 → 23.9.1](psf/black@23.3.0...23.9.1)
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](PyCQA/flake8@6.0.0...6.1.0)

* Lint

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Matthew W. Thompson <mattwthompson@protonmail.com>
  • Loading branch information
pre-commit-ci[bot] and mattwthompson authored Oct 19, 2023
1 parent 3673ada commit 0e50a3c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
- id: check-yaml
- id: debug-statements
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.9.1
hooks:
- id: black
files: ^openff
Expand All @@ -17,7 +17,7 @@ repos:
- id: isort
files: ^openff
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
files: ^openff
2 changes: 1 addition & 1 deletion openff/bespokefit/executor/services/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __gt__(self, other):

def __eq__(self, other):
return (
type(self) == type(other)
type(self) is type(other)
and self.id.__eq__(other.id)
and self.self.__eq__(other.self)
)
Expand Down
2 changes: 1 addition & 1 deletion openff/bespokefit/schema/smirnoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def from_smirnoff(cls, parameter: ParameterType):
"""Creates a version of this class from a SMIRNOFF parameter"""

def __eq__(self, other):
return type(self) == type(other) and self.__hash__() == other.__hash__()
return type(self) is type(other) and self.__hash__() == other.__hash__()

def __ne__(self, other):
assert not self.__eq__(other)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_local_to_qc_records(result_fixture, request):
LocalQCData(qc_records=[qc_result])
)

assert type(qc_record) == type(qc_result)
assert type(qc_record) is type(qc_result)

assert molecule.to_smiles() == expected_molecule.to_smiles()
assert molecule.n_conformers == expected_molecule.n_conformers
Expand Down

0 comments on commit 0e50a3c

Please sign in to comment.