Skip to content

Commit

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

updates:
- [github.com/psf/black: 23.7.0 → 23.9.1](psf/black@23.7.0...23.9.1)
- [github.com/pycqa/flake8: 6.0.0 → 6.1.0](PyCQA/flake8@6.0.0...6.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use `is` to compare types

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Justus Magin <keewis@posteo.de>
  • Loading branch information
pre-commit-ci[bot] and keewis authored Sep 13, 2023
1 parent 8db1b54 commit 0d4c612
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ repos:
- id: isort
# https://github.com/python/black#version-control-integration
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black
- id: black-jupyter
- repo: https://github.com/keewis/blackdoc
rev: v0.3.8
hooks:
- id: blackdoc
additional_dependencies: ["black==23.7.0"]
additional_dependencies: ["black==23.9.1"]
- id: blackdoc-autoupdate-black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/kynan/nbstripout
Expand Down
2 changes: 1 addition & 1 deletion pint_xarray/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def assert_slice_equal(a, b):
def assert_indexer_equal(a, b):
__tracebackhide__ = True

assert type(a) == type(b)
assert type(a) is type(b)
if isinstance(a, slice):
assert_slice_equal(a, b)
elif isinstance(a, DataArray):
Expand Down

0 comments on commit 0d4c612

Please sign in to comment.