Skip to content

Commit

Permalink
chore: update pre-commit hooks (#1247)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/psf/black-pre-commit-mirror: 24.4.2 → 24.8.0](psf/black-pre-commit-mirror@24.4.2...24.8.0)
- [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.6.2](astral-sh/ruff-pre-commit@v0.5.0...v0.6.2)
- [github.com/asottile/pyupgrade: v3.16.0 → v3.17.0](asottile/pyupgrade@v3.16.0...v3.17.0)
- [github.com/macisamuele/language-formatters-pre-commit-hooks: v2.13.0 → v2.14.0](macisamuele/language-formatters-pre-commit-hooks@v2.13.0...v2.14.0)

* follow ruff's advice

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: jpivarski <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and jpivarski authored Aug 28, 2024
1 parent adf831e commit 012df94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
rev: v0.6.2
hooks:
- id: ruff
args: [--fix, --show-fixes]


- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py38-plus]

- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.13.0
rev: v2.14.0
hooks:
- id: pretty-format-toml
args: [--autofix]
Expand Down
2 changes: 1 addition & 1 deletion src/uproot/behaviors/TH1.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __eq__(self, other):
Two histograms are equal if their axes are equal, their values are equal,
and their variances are equal.
"""
if type(self) != type(other):
if type(self) is not type(other):
return False
if self.axes != other.axes:
return False
Expand Down
2 changes: 1 addition & 1 deletion src/uproot/interpretation/numerical.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def __repr__(self):

def __eq__(self, other):
return (
type(self) == type(other)
type(self) is type(other)
and self._low == other._low
and self._high == other._high
and self._num_bits == other._num_bits
Expand Down

0 comments on commit 012df94

Please sign in to comment.