Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #948

Merged
merged 3 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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