ruff: enable B warnings (mainly suppressed exceptions and unused variables)
This commit is contained in:
parent
d0df8e8f2d
commit
72cc8ff3ac
30 changed files with 83 additions and 67 deletions
|
@ -14,9 +14,9 @@ except ImportError as ie:
|
|||
try:
|
||||
from my.config import twitter as user_config # type: ignore[assignment]
|
||||
except ImportError:
|
||||
raise ie # raise the original exception.. must be something else
|
||||
raise ie # raise the original exception.. must be something else # noqa: B904
|
||||
else:
|
||||
from ..core import warnings
|
||||
from my.core import warnings
|
||||
warnings.high('my.config.twitter is deprecated! Please rename it to my.config.twitter_archive in your config')
|
||||
##
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue