Skip to content

Commit

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

updates:
- [github.com/asottile/pyupgrade: v3.8.0 → v3.13.0](asottile/pyupgrade@v3.8.0...v3.13.0)
- [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)
- [github.com/pre-commit/mirrors-mypy: v1.4.1 → v1.5.1](pre-commit/mirrors-mypy@v1.4.1...v1.5.1)

* style: Fix flake8 errors on type checking is over ==

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Brandon Butler <butlerbr@umich.edu>
  • Loading branch information
pre-commit-ci[bot] and b-butler authored Oct 3, 2023
1 parent 9d04485 commit 4b7ebe1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: debug-statements
- id: requirements-txt-fixer
- repo: https://github.com/asottile/pyupgrade
rev: 'v3.8.0'
rev: 'v3.13.0'
hooks:
- id: pyupgrade
args:
Expand All @@ -27,11 +27,11 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: '23.3.0'
rev: '23.9.1'
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: '6.0.0'
rev: '6.1.0'
hooks:
- id: flake8
- repo: https://github.com/PyCQA/pydocstyle
Expand All @@ -46,7 +46,7 @@ repos:
additional_dependencies:
- tomli
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.4.1'
rev: 'v1.5.1'
hooks:
- id: mypy
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion signac/h5store.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def __eq__(self, other):
with _ensure_open(self._store):
if isinstance(self, Mapping) and isinstance(other, Mapping):
return super().__eq__(other)
elif type(other) == type(self):
elif type(other) is type(self):
return self._group == other._group
else:
return super().__eq__(other)
Expand Down
2 changes: 1 addition & 1 deletion signac/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def sync_jobs(
if doc_sync != DocSync.COPY:
exclude.append(src.FN_DOCUMENT)

if type(dry_run) == _FileModifyProxy:
if type(dry_run) is _FileModifyProxy:
proxy = dry_run
else:
proxy = _FileModifyProxy(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_h5store.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def test_set_get_explicit_nested(self):
child1 = h5s["a"]
child2 = h5s["a"]
self.assertEqual(child1, child2)
assert type(child1) == type(child2)
assert type(child1) is type(child2)
assert not child1
assert not child2
child1[key] = d
Expand Down

0 comments on commit 4b7ebe1

Please sign in to comment.