pypa / pipx

Install and Run Python Applications in Isolated Environments
https://pipx.pypa.io
MIT License
9.51k stars 396 forks source link

Apply ruff/pycodestyle rule E721 #1465

Closed DimitriPapadopoulos closed 5 days ago

DimitriPapadopoulos commented 1 week ago

Summary of changes

New in ruff 0.5.0?

E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks

Test plan

CI tests.

huxuan commented 6 days ago

This will fix #1467.

But to avoid conflicts, would you mind reverting the changes of the version in pre commit config?