Skip to content

Commit

Permalink
Upgraded flake8 and black to newer version (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonwolfy authored Jul 31, 2023
1 parent 689831a commit c7cdd41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repos:
- id: rst-inline-touching-normal
- id: text-unicode-replacement-char
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black
args: ["--check", "--diff", "--color"]
Expand All @@ -59,7 +59,7 @@ repos:
name: isort (pyi)
types: [pyi]
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
args: ["--config=.flake8"]
Expand Down
2 changes: 1 addition & 1 deletion dpnp/dpnp_iface_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def put(x1, ind, v, mode="raise"):
if x1_desc:
if mode != "raise":
pass
elif type(ind) != type(v):
elif type(ind) is not type(v):
pass
elif (
numpy.max(ind) >= x1_desc.size or numpy.min(ind) + x1_desc.size < 0
Expand Down

0 comments on commit c7cdd41

Please sign in to comment.