Skip to content

Commit

Permalink
Merge pull request #4936 from yt-project/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
neutrinoceros authored Jul 1, 2024
2 parents 76feff7 + 3327fee commit 6c3543f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ repos:
# TODO: replace this with ruff when it supports embedded python blocks
# see https://github.com/astral-sh/ruff/issues/8237
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies: [black==24.3.0]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
rev: v0.5.0
hooks:
- id: ruff-format
types_or: [ python, pyi, jupyter ]
Expand Down
2 changes: 1 addition & 1 deletion yt/frontends/amrex/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ def _guess_pcast(vals):
pcast = float
else:
pcast = int
if pcast == bool:
if pcast is bool:
vals = [value == "T" for value in vals.split()]
else:
vals = [pcast(value) for value in vals.split()]
Expand Down
2 changes: 1 addition & 1 deletion yt/utilities/configuration_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def value(self):

@value.setter
def value(self, new_value):
if type(self.value) == type(new_value):
if type(self.value) is type(new_value):
self._value = new_value
else:
tree = self.get_tree()
Expand Down

0 comments on commit 6c3543f

Please sign in to comment.