mirror of
https://github.com/creyD/email_valid.git
synced 2026-04-12 11:20:30 +02:00
feat: added vsc config and removed test code
This commit is contained in:
17
.vscode/launch.json
vendored
Normal file
17
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Run",
|
||||||
|
"type": "python",
|
||||||
|
"request": "launch",
|
||||||
|
"module": "uvicorn",
|
||||||
|
"args": ["app.main:app", "--reload"],
|
||||||
|
"jinja": true,
|
||||||
|
"justMyCode": true,
|
||||||
|
"env": {
|
||||||
|
"PYDEVD_DISABLE_FILE_VALIDATION": "1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
50
.vscode/settings.json
vendored
Normal file
50
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python3",
|
||||||
|
"python.globalModuleInstallation": false,
|
||||||
|
"python.terminal.activateEnvironment": true,
|
||||||
|
"python.analysis.typeCheckingMode": "basic",
|
||||||
|
"[python]": {
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.organizeImports": "explicit"
|
||||||
|
},
|
||||||
|
"editor.defaultFormatter": "ms-python.black-formatter"
|
||||||
|
},
|
||||||
|
"black-formatter.args": ["-l 100", "--exclude '/.venv/|alembic/|/__init__.py'"],
|
||||||
|
"isort.args": ["--profile", "black"],
|
||||||
|
// Editor General
|
||||||
|
"files.insertFinalNewline": true,
|
||||||
|
"editor.fontSize": 15,
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.rulers": [100],
|
||||||
|
"editor.minimap.enabled": true,
|
||||||
|
"files.exclude": {
|
||||||
|
"**/.git": true,
|
||||||
|
"**/.venv": true,
|
||||||
|
"**/.svn": true,
|
||||||
|
"**/.hg": true,
|
||||||
|
"**/db.sqlite3": true,
|
||||||
|
"**/.DS_Store": true,
|
||||||
|
"**/*.pyc": true,
|
||||||
|
"build/": true,
|
||||||
|
"**/*.egg-info": true,
|
||||||
|
"**/__pycache__/": true,
|
||||||
|
"**/dist/": true,
|
||||||
|
"**/DOCKER/": true,
|
||||||
|
"**/.pytest_cache/": true,
|
||||||
|
},
|
||||||
|
"search.exclude": {
|
||||||
|
"**/.git": true,
|
||||||
|
"**/.venv": true,
|
||||||
|
"**/tmp": true,
|
||||||
|
"htmlcov/*": true,
|
||||||
|
"docs/*": true,
|
||||||
|
"build/": true,
|
||||||
|
"**/*.egg-info": true,
|
||||||
|
".venv/*": true,
|
||||||
|
"**/dist/": true,
|
||||||
|
"**/DOCKER/": true,
|
||||||
|
"**/.pytest_cache/": true,
|
||||||
|
},
|
||||||
|
"python.testing.unittestEnabled": true,
|
||||||
|
"python.testing.pytestEnabled": false
|
||||||
|
}
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
from validate_email import validate_email
|
|
||||||
|
|
||||||
# Replace with your target email
|
|
||||||
emails =[
|
|
||||||
"conrad@noah.tech",
|
|
||||||
"bernd@noah.tech"
|
|
||||||
]
|
|
||||||
for mail in emails:
|
|
||||||
is_valid = validate_email(
|
|
||||||
email_address=mail,
|
|
||||||
check_format=True,
|
|
||||||
check_blacklist=True,
|
|
||||||
check_dns=True,
|
|
||||||
dns_timeout=10,
|
|
||||||
check_smtp=True,
|
|
||||||
smtp_timeout=10,
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
print(f"Is '{mail}' valid? -> {is_valid}")
|
|
||||||
Reference in New Issue
Block a user