Skip to content

Commit 8a87503

Browse files
authored
Enable ruff FURB None rules (#18687)
1 parent 98e3faf commit 8a87503

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ select = [
146146
"C4", # flake8-comprehensions
147147
"SIM101", # merge duplicate isinstance calls
148148
"SIM201", "SIM202", "SIM222", "SIM223", # flake8-simplify
149+
"FURB168", # Prefer is operator over isinstance for None checks
150+
"FURB169", # Do not use is comparison with type(None). Use None
149151
"FURB188", # use str.remove(pre|suf)fix
150152
"ISC001", # implicitly concatenated string
151153
"RET501", "RET502", # better return None handling

0 commit comments

Comments
 (0)