ruff: enable B warnings (mainly suppressed exceptions and unused variables)

This commit is contained in:
Dima Gerasimov 2024-08-28 01:13:18 +01:00 committed by karlicoss
parent d0df8e8f2d
commit 72cc8ff3ac
30 changed files with 83 additions and 67 deletions

View file

@ -1,9 +1,12 @@
import warnings
from typing import TYPE_CHECKING
warnings.warn('my.coding.github is deprecated! Please use my.github.all instead!')
from my.core import warnings
warnings.high('my.coding.github is deprecated! Please use my.github.all instead!')
# todo why aren't DeprecationWarning shown by default??
from ..github.all import events, get_events
if not TYPE_CHECKING:
from ..github.all import events, get_events
# todo deprecate properly
iter_events = events
# todo deprecate properly
iter_events = events