Skip to content

Commit

Permalink
Merge pull request #7326 from python-pillow/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
hugovk authored Aug 8, 2023
2 parents 241a012 + 15930be commit 796bb18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black
args: [--target-version=py38]
Expand All @@ -23,13 +23,13 @@ repos:
- id: yesqa

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
rev: v1.5.3
hooks:
- id: remove-tabs
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$)

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -55,7 +55,7 @@ repos:
- id: sphinx-lint

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 0.12.1
rev: 0.13.0
hooks:
- id: pyproject-fmt

Expand Down
2 changes: 1 addition & 1 deletion src/PIL/ImageMath.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def eval(expression, _dict={}, **kw):

def scan(code):
for const in code.co_consts:
if type(const) == type(compiled_code):
if type(const) is type(compiled_code):
scan(const)

for name in code.co_names:
Expand Down

0 comments on commit 796bb18

Please sign in to comment.