Skip to content

Commit 691595c

Browse files
committed
ruff linting fix
1 parent ce8dbab commit 691595c

337 files changed

Lines changed: 66689 additions & 54673 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apprise/__init__.py

Lines changed: 74 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# BSD 2-Clause License
32
#
43
# Apprise - Push Notification Library.
@@ -26,81 +25,93 @@
2625
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2726
# POSSIBILITY OF SUCH DAMAGE.
2827

29-
__title__ = 'Apprise'
30-
__version__ = '1.9.3'
31-
__author__ = 'Chris Caron'
32-
__license__ = 'BSD 2-Clause'
33-
__copywrite__ = 'Copyright (C) 2025 Chris Caron <lead2gold@gmail.com>'
34-
__email__ = 'lead2gold@gmail.com'
35-
__status__ = 'Production'
36-
37-
from .common import NotifyType
38-
from .common import NOTIFY_TYPES
39-
from .common import NotifyImageSize
40-
from .common import NOTIFY_IMAGE_SIZES
41-
from .common import NotifyFormat
42-
from .common import NOTIFY_FORMATS
43-
from .common import OverflowMode
44-
from .common import OVERFLOW_MODES
45-
from .common import ConfigFormat
46-
from .common import CONFIG_FORMATS
47-
from .common import ContentIncludeMode
48-
from .common import CONTENT_INCLUDE_MODES
49-
from .common import ContentLocation
50-
from .common import CONTENT_LOCATIONS
51-
from .common import PersistentStoreMode
52-
from .common import PERSISTENT_STORE_MODES
53-
54-
from .url import URLBase
55-
from .url import PrivacyMode
56-
from .plugins.base import NotifyBase
57-
from .config.base import ConfigBase
58-
from .attachment.base import AttachBase
59-
from . import exception
28+
__title__ = "Apprise"
29+
__version__ = "1.9.3"
30+
__author__ = "Chris Caron"
31+
__license__ = "BSD 2-Clause"
32+
__copywrite__ = "Copyright (C) 2025 Chris Caron <lead2gold@gmail.com>"
33+
__email__ = "lead2gold@gmail.com"
34+
__status__ = "Production"
6035

36+
from . import decorators, exception
6137
from .apprise import Apprise
62-
from .locale import AppriseLocale
63-
from .asset import AppriseAsset
64-
from .persistent_store import PersistentStore
65-
from .apprise_config import AppriseConfig
6638
from .apprise_attachment import AppriseAttachment
39+
from .apprise_config import AppriseConfig
40+
from .asset import AppriseAsset
41+
from .attachment.base import AttachBase
42+
from .common import (
43+
CONFIG_FORMATS,
44+
CONTENT_INCLUDE_MODES,
45+
CONTENT_LOCATIONS,
46+
NOTIFY_FORMATS,
47+
NOTIFY_IMAGE_SIZES,
48+
NOTIFY_TYPES,
49+
OVERFLOW_MODES,
50+
PERSISTENT_STORE_MODES,
51+
ConfigFormat,
52+
ContentIncludeMode,
53+
ContentLocation,
54+
NotifyFormat,
55+
NotifyImageSize,
56+
NotifyType,
57+
OverflowMode,
58+
PersistentStoreMode,
59+
)
60+
from .config.base import ConfigBase
61+
from .locale import AppriseLocale
62+
63+
# Inherit our logging with our additional entries added to it
64+
from .logger import LogCapture, logger, logging
6765
from .manager_attachment import AttachmentManager
6866
from .manager_config import ConfigurationManager
6967
from .manager_plugins import NotificationManager
70-
from . import decorators
71-
72-
# Inherit our logging with our additional entries added to it
73-
from .logger import logging
74-
from .logger import logger
75-
from .logger import LogCapture
68+
from .persistent_store import PersistentStore
69+
from .plugins.base import NotifyBase
70+
from .url import PrivacyMode, URLBase
7671

7772
# Set default logging handler to avoid "No handler found" warnings.
7873
logging.getLogger(__name__).addHandler(logging.NullHandler())
7974

8075
__all__ = [
76+
"CONFIG_FORMATS",
77+
"CONTENT_INCLUDE_MODES",
78+
"CONTENT_LOCATIONS",
79+
"NOTIFY_FORMATS",
80+
"NOTIFY_IMAGE_SIZES",
81+
"NOTIFY_TYPES",
82+
"OVERFLOW_MODES",
83+
"PERSISTENT_STORE_MODES",
8184
# Core
82-
'Apprise', 'AppriseAsset', 'AppriseConfig', 'AppriseAttachment', 'URLBase',
83-
'NotifyBase', 'ConfigBase', 'AttachBase', 'AppriseLocale',
84-
'PersistentStore',
85-
86-
# Exceptions
87-
'exception',
88-
89-
# Reference
90-
'NotifyType', 'NotifyImageSize', 'NotifyFormat', 'OverflowMode',
91-
'NOTIFY_TYPES', 'NOTIFY_IMAGE_SIZES', 'NOTIFY_FORMATS', 'OVERFLOW_MODES',
92-
'ConfigFormat', 'CONFIG_FORMATS',
93-
'ContentIncludeMode', 'CONTENT_INCLUDE_MODES',
94-
'ContentLocation', 'CONTENT_LOCATIONS',
95-
'PersistentStoreMode', 'PERSISTENT_STORE_MODES',
96-
'PrivacyMode',
97-
85+
"Apprise",
86+
"AppriseAsset",
87+
"AppriseAttachment",
88+
"AppriseConfig",
89+
"AppriseLocale",
90+
"AttachBase",
91+
"AttachmentManager",
92+
"ConfigBase",
93+
"ConfigFormat",
94+
"ConfigurationManager",
95+
"ContentIncludeMode",
96+
"ContentLocation",
97+
"LogCapture",
9898
# Managers
99-
'NotificationManager', 'ConfigurationManager', 'AttachmentManager',
100-
99+
"NotificationManager",
100+
"NotifyBase",
101+
"NotifyFormat",
102+
"NotifyImageSize",
103+
# Reference
104+
"NotifyType",
105+
"OverflowMode",
106+
"PersistentStore",
107+
"PersistentStoreMode",
108+
"PrivacyMode",
109+
"URLBase",
101110
# Decorator
102-
'decorators',
103-
111+
"decorators",
112+
# Exceptions
113+
"exception",
104114
# Logging
105-
'logging', 'logger', 'LogCapture',
115+
"logger",
116+
"logging",
106117
]

0 commit comments

Comments
 (0)