Skip to content

Commit

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

updates:
- [github.com/PyCQA/autoflake: v2.0.2 → v2.2.1](PyCQA/autoflake@v2.0.2...v2.2.1)
- [github.com/asottile/pyupgrade: v3.3.1 → v3.13.0](asottile/pyupgrade@v3.3.1...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.1.1 → v1.5.1](pre-commit/mirrors-mypy@v1.1.1...v1.5.1)

* Remove typing extension version pin

* fix linter error E721
  • Loading branch information
pre-commit-ci[bot] authored Dec 15, 2023
1 parent 3ff2f5d commit b35fed7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: mixed-line-ending
# This wants to go before isort & flake8
- repo: https://github.com/PyCQA/autoflake
rev: "v2.0.2"
rev: "v2.2.1"
hooks:
- id: autoflake # isort should run before black as black sometimes tweaks the isort output
args: ["--in-place", "--ignore-init-module-imports"]
Expand All @@ -24,14 +24,14 @@ repos:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.13.0
hooks:
- id: pyupgrade
args:
- "--py38-plus"
# https://github.com/python/black#version-control-integration
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.9.1
hooks:
- id: black
- id: black-jupyter
Expand All @@ -41,11 +41,11 @@ repos:
- id: blackdoc
exclude: docs/index.rst
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
rev: v1.5.1
hooks:
- id: mypy
exclude: "properties|asv_bench"
Expand All @@ -58,6 +58,6 @@ repos:
types-pkg_resources,
types-PyYAML,
types-pytz,
typing-extensions==3.10.0.0,
typing-extensions,
numpy,
]
4 changes: 1 addition & 3 deletions tests/test_get_bitinformation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

"""Tests for `xbitinfo` package."""
import os

Expand Down Expand Up @@ -33,7 +31,7 @@ def assert_different(a, b):
numpy.testing.assert_array_equal
"""
__tracebackhide__ = True
assert type(a) == type(b)
assert isinstance(a, type(b))
if isinstance(a, (Variable, DataArray)):
assert not a.equals(b), formatting.diff_array_repr(a, b, "equals")
elif isinstance(a, Dataset):
Expand Down

0 comments on commit b35fed7

Please sign in to comment.