-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor_v1.2.3 small refactoring (#171)
* refactor_v1.2.3 small refactorings * change python version for github actions
- Loading branch information
Showing
30 changed files
with
1,746 additions
and
1,739 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[flake8] | ||
max_line_length = 115 | ||
exclude = .venv,.mypy_cache,.pytest_cache | ||
ignore = PT013,PT018,W503 | ||
ignore = PT013,PT018,W503 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
release: | ||
types: [created] | ||
|
||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,16 @@ | |
|
||
from fastapi_mail.email_utils import DefaultChecker, WhoIsXmlApi | ||
|
||
checker = DefaultChecker(db_provider='redis') | ||
checker = DefaultChecker(db_provider="redis") | ||
loop = asyncio.get_event_loop() | ||
loop.run_until_complete(checker.init_redis()) | ||
res = loop.run_until_complete(checker.blacklist_rm_temp('promail1.net')) | ||
res = loop.run_until_complete(checker.blacklist_rm_temp("promail1.net")) | ||
print(res) | ||
loop_until = loop.run_until_complete(checker.temp_email_count()) | ||
|
||
who_is = WhoIsXmlApi(token='Your access token', email='[email protected]') | ||
who_is = WhoIsXmlApi(token="Your access token", email="[email protected]") | ||
|
||
print(who_is.smtp_check_()) # check smtp server | ||
print(who_is.is_disposable()) # check email is disposable or not | ||
print(who_is.check_mx_record()) # check domain mx records | ||
print(who_is.free_check) # check email domain is free or not | ||
print(who_is.is_disposable()) # check email is disposable or not | ||
print(who_is.check_mx_record()) # check domain mx records | ||
print(who_is.free_check) # check email domain is free or not |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,13 @@ | |
|
||
from . import email_utils | ||
|
||
__author__ = '[email protected]' | ||
__author__ = "[email protected]" | ||
|
||
__all__ = [ | ||
'FastMail', | ||
'ConnectionConfig', | ||
'MessageSchema', | ||
'email_utils', | ||
'MultipartSubtypeEnum', | ||
'MessageType', | ||
"FastMail", | ||
"ConnectionConfig", | ||
"MessageSchema", | ||
"email_utils", | ||
"MultipartSubtypeEnum", | ||
"MessageType", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from fastapi_mail.email_utils.email_check import DefaultChecker, WhoIsXmlApi | ||
|
||
__all__ = ['DefaultChecker', 'WhoIsXmlApi'] | ||
__all__ = ["DefaultChecker", "WhoIsXmlApi"] |
Oops, something went wrong.