Skip to content

Commit

Permalink
Apply ruff/pycodestyle rule E721
Browse files Browse the repository at this point in the history
E721 Use `is` and `is not` for type comparisons,
     or `isinstance()` for isinstance checks
  • Loading branch information
DimitriPapadopoulos committed Jun 29, 2024
1 parent 801665f commit 85fb9a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
rev: v0.5.0
hooks:
- id: ruff
args: [ "--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run_pipx_cli_exit(pipx_cmd_list, assert_exit=None):
with pytest.raises(SystemExit) as sys_exit:
run_pipx_cli(pipx_cmd_list)
if assert_exit is not None:
assert sys_exit.type == SystemExit
assert sys_exit.type is SystemExit
assert sys_exit.value.code == assert_exit


Expand Down

0 comments on commit 85fb9a2

Please sign in to comment.