Skip to content

Commit

Permalink
Merge pull request #294 from glotzerlab/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
joaander authored Oct 2, 2023
2 parents ee73db3 + 514f679 commit b7ff6aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ repos:
- --keep-after=.. include
- --comment-prefix=..
- repo: https://github.com/google/yapf
rev: 'v0.40.0'
rev: 'v0.40.2'
hooks:
- id: yapf
additional_dependencies:
- toml==0.10.2
- repo: https://github.com/PyCQA/flake8
rev: '6.0.0'
rev: '6.1.0'
hooks:
- id: flake8
additional_dependencies:
Expand Down
10 changes: 5 additions & 5 deletions gsd/test/test_fl.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ def test_gsd_v1_write(tmp_path, open_mode):

values_str = []
for v in values:
if type(v) == str and len(v) > 63:
if type(v) is str and len(v) > 63:
# v1 files truncate names to 63 chars
v = v[0:63]
values_str.append(str(v))
Expand All @@ -735,7 +735,7 @@ def check_v1_file_read(f):
frame = 5
random.shuffle(values)
for value in values:
if type(value) == int:
if type(value) is int:
data = numpy.array([value * 13], dtype=numpy.int32)
else:
data = numpy.array([hash(value)], dtype=numpy.int64)
Expand All @@ -756,7 +756,7 @@ def check_v1_file_read(f):
assert f.gsd_version == (1, 0)

for value in values:
if type(value) == int:
if type(value) is int:
data = numpy.array([value * 13], dtype=numpy.int32)
else:
data = numpy.array([hash(value)], dtype=numpy.int64)
Expand Down Expand Up @@ -807,7 +807,7 @@ def check_v1_file_read(f):
frame = 5
random.shuffle(values)
for value in values:
if type(value) == int:
if type(value) is int:
data = numpy.array([value * 13], dtype=numpy.int32)
else:
data = numpy.array([hash(value)], dtype=numpy.int64)
Expand All @@ -829,7 +829,7 @@ def check_v1_file_read(f):
assert f.gsd_version == (2, 0)

for value in values:
if type(value) == int:
if type(value) is int:
data = numpy.array([value * 13], dtype=numpy.int32)
else:
data = numpy.array([hash(value)], dtype=numpy.int64)
Expand Down

0 comments on commit b7ff6aa

Please sign in to comment.