Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#6951)
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored Jul 8, 2024
1 parent 00618de commit 147316e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
exclude: \.min\.js$
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
rev: v0.5.0
hooks:
- id: ruff
files: panel/
Expand Down Expand Up @@ -50,7 +50,7 @@ repos:
- id: oxipng
stages: [manual]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.5.0
rev: v9.6.0
hooks:
- id: eslint
args: ['-c', 'panel/.eslintrc.js', 'panel/*.ts', 'panel/models/**/*.ts', '--fix']
Expand Down
2 changes: 1 addition & 1 deletion panel/io/mime_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def exec_with_return(
exec(compile(init_ast, "<ast>", "exec"), global_context)
if not last_ast.body:
out = None
elif type(last_ast.body[0]) == ast.Expr:
elif type(last_ast.body[0]) is ast.Expr:
out = eval(compile(_convert_expr(last_ast.body[0]), "<ast>", "eval"), global_context)
else:
exec(compile(last_ast, "<ast>", "exec"), global_context)
Expand Down
2 changes: 1 addition & 1 deletion panel/tests/widgets/test_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ def test_toggle_group_radio(document, comm):

widget.active = 2
select._process_events({'active': 2})
assert select.value == object
assert select.value is object

select.value = 'A'
assert widget.active == 0
Expand Down

0 comments on commit 147316e

Please sign in to comment.