File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ select = [
46
46
" N" , # pep8-naming
47
47
" PGH" , # pygrep-hooks
48
48
" RUF" , # Ruff-specific and unused-noqa
49
+ " TRY" , # tryceratops
49
50
" UP" , # pyupgrade
50
51
" YTT" , # flake8-2020
51
52
# Flake8 base rules
@@ -116,6 +117,8 @@ ignore = [
116
117
# Used for direct, non-subclass type comparison, for example: `type(val) is str`
117
118
# see https://github.com/astral-sh/ruff/issues/6465
118
119
" E721" , # Do not compare types, use `isinstance()`
120
+ # Mostly from scripts and tests, it's ok to have messages passed directly to exceptions
121
+ " TRY003" , # Avoid specifying long messages outside the exception class
119
122
# Slower and more verbose https://github.com/astral-sh/ruff/issues/7871
120
123
" UP038" , # Use `X | Y` in `isinstance` call instead of `(X, Y)`
121
124
# ##
You can’t perform that action at this time.
0 commit comments