flake8 InvocationError's resolved (#238)

This commit is contained in:
Chris Caron 2020-06-07 13:37:07 -04:00 committed by GitHub
parent 28f416093d
commit b318c4d208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 4 deletions

View File

@ -161,7 +161,7 @@ class NotifyBase(URLBase):
# Store the specified format if specified
notify_format = kwargs.get('format', '')
if notify_format.lower() not in NOTIFY_FORMATS:
msg = 'Invalid notification format %s'.format(notify_format)
msg = 'Invalid notification format {}'.format(notify_format)
self.logger.error(msg)
raise TypeError(msg)

View File

@ -8,7 +8,7 @@ license_file = LICENSE
[flake8]
# We exclude packages we don't maintain
exclude = .eggs,.tox,gntp
ignore = E722,W503,W504,W605
ignore = E741,E722,W503,W504,W605
statistics = true
builtins = _

View File

@ -70,7 +70,6 @@ def test_office365_general(mock_post):
obj = Apprise.instantiate(
'o365://{tenant}:{email}/{tenant}/{secret}/{targets}'.format(
tenant=tenant,
client_id=client_id,
email=email,
secret=secret,
targets=targets))

View File

@ -3201,7 +3201,7 @@ TEST_URLS = (
# Expected notify() response
'notify_response': False,
}),
('spush://salt:pass@{}'.format('X' * 14, 'A' * 16), {
('spush://salt:pass@{}'.format('X' * 14), {
# Now we'll test encrypted messages with new salt
'instance': plugins.NotifySimplePush,
# Set our response to OK