What's Changed
Rules
- feat: implement
TRY002
andTRY003
by @karpa4o4 in #2135 - Implementing
TRY400
by @Flowake in #2115 - Implement some rules from
flake8-logging-format
(G
) by @edgarrmondragon in #2150
Settings
- Add strictness setting for
flake8-typing-imports
by @charliermarsh in #2221 - Implement
exempt-modules
setting from flake8-type-checking by @charliermarsh in #2230
Bug Fixes
- flake8_executable: Only match shebang at beginning of line by @andersk in #2183
- Don't flag B009/B010 if identifiers would be mangled by @sciyoshi in #2204
- fix: --explain reporting the wrong linter by @not-my-profile in #2215
- Preserve indentation when fixing via LibCST by @charliermarsh in #2223
- Avoid erroneous class autofixes in indented blocks by @charliermarsh in #2226
- Fix range for
try-consider-else
by @charliermarsh in #2228 - Avoid flagging blind exceptions with valid logging by @charliermarsh in #2232
- Avoid removing trailing comments on
pass
statements by @charliermarsh in #2235 - Allow
pytest
in shebang by @charliermarsh in #2237 - Wrap return-bool-condition-directly fixes in bool() by @charliermarsh in #2240
New Contributors
- @Flowake made their first contribution in #2115
- @henryiii made their first contribution in #2200
- @sciyoshi made their first contribution in #2204
Full Changelog: v0.0.235...v0.0.236