Skip to content

Apply ruff/flake8-simplify rules (SIM)#238

Merged
mattip merged 5 commits intopython-cffi:mainfrom
DimitriPapadopoulos:SIM
Mar 25, 2026
Merged

Apply ruff/flake8-simplify rules (SIM)#238
mattip merged 5 commits intopython-cffi:mainfrom
DimitriPapadopoulos:SIM

Conversation

@DimitriPapadopoulos
Copy link
Contributor

No description provided.

SIM101 Multiple `isinstance` calls for `tp`, merge into a single call
SIM103 Return the condition directly
SIM115 Use a context manager for opening files
SIM118 Use `key in dict` instead of `key in dict.keys()`
SIM201 Use `... != ...` instead of `not ... == ...`
@mattip
Copy link
Contributor

mattip commented Mar 25, 2026

Thanks @DimitriPapadopoulos

@mattip mattip merged commit 9a4c740 into python-cffi:main Mar 25, 2026
37 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the SIM branch March 25, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants