vscode config + pep8
This commit is contained in:
parent
d288a8fb11
commit
8af68a58ad
16
.vscode/launch.json
vendored
Normal file
16
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
// Verwendet IntelliSense zum Ermitteln möglicher Attribute.
|
||||||
|
// Zeigen Sie auf vorhandene Attribute, um die zugehörigen Beschreibungen anzuzeigen.
|
||||||
|
// Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Python: Main File execution",
|
||||||
|
"type": "python",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceFolder}/file2mail.py",
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"justMyCode": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
14
.vscode/settings.json
vendored
Normal file
14
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"autopep8.args": ["--max-line-length=150"],
|
||||||
|
"python.formatting.provider": "none",
|
||||||
|
"[python]": {
|
||||||
|
"editor.defaultFormatter": "ms-python.autopep8",
|
||||||
|
"editor.formatOnSave": true
|
||||||
|
},
|
||||||
|
"editor.fontSize": 16,
|
||||||
|
"emmet.includeLanguages": { "django-html": "html" },
|
||||||
|
"python.testing.pytestArgs": ["-v", "--cov", "--cov-report=xml", "__test__"],
|
||||||
|
"python.testing.unittestEnabled": false,
|
||||||
|
"python.testing.pytestEnabled": true
|
||||||
|
}
|
@ -40,7 +40,7 @@ if __name__ == "__main__":
|
|||||||
config.SEND_FROM,
|
config.SEND_FROM,
|
||||||
config.SEND_TO,
|
config.SEND_TO,
|
||||||
"Gesanntes Dokument - %s" % os.path.basename(filename),
|
"Gesanntes Dokument - %s" % os.path.basename(filename),
|
||||||
"Hier ist das gescannte Dokument vom Scanner in Buchen:",
|
"Hier ist das gescannte Dokument vom Scanner in Buchen:",
|
||||||
files=[filename],
|
files=[filename],
|
||||||
server=config.SMTP_SERVER,
|
server=config.SMTP_SERVER,
|
||||||
username=config.SMTP_USER,
|
username=config.SMTP_USER,
|
||||||
@ -51,7 +51,7 @@ if __name__ == "__main__":
|
|||||||
else:
|
else:
|
||||||
# Remove file
|
# Remove file
|
||||||
logger.debug("Removing file %s", filename)
|
logger.debug("Removing file %s", filename)
|
||||||
os.remove(filename )
|
os.remove(filename)
|
||||||
# Remove LOCK_FILE
|
# Remove LOCK_FILE
|
||||||
logger.debug("Removing lock-file %s", LOCK_FILE)
|
logger.debug("Removing lock-file %s", LOCK_FILE)
|
||||||
os.remove(LOCK_FILE)
|
os.remove(LOCK_FILE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user