aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar martmists <[email protected]>2018-02-03 17:30:55 +0100
committerGravatar martmists <[email protected]>2018-02-03 17:30:55 +0100
commit2d5dbede46a88d8a717b09722d18cb1d1922f9f9 (patch)
tree6763f8a964eaf90e3f06a3cb5b95e63b33f88021
parentChange message to test auto deploy (diff)
Fixfixfix
Signed-off-by: martmists <[email protected]>
-rw-r--r--.snekrc3
-rw-r--r--app.py8
2 files changed, 7 insertions, 4 deletions
diff --git a/.snekrc b/.snekrc
index ccb040fb..07aaf091 100644
--- a/.snekrc
+++ b/.snekrc
@@ -1,5 +1,5 @@
[all]
-linters = flake8, isort, yapf, safety, dodgy
+linters = flake8, isort, yapf, safety, dodgy, vulture
[flake8]
max-line-length=100
@@ -18,5 +18,6 @@ force_sort_within_sections=true
[vulture]
min-confidence=60
+exclude=index.py
[style]
diff --git a/app.py b/app.py
index 876c7e0f..9e9cdc4e 100644
--- a/app.py
+++ b/app.py
@@ -1,17 +1,19 @@
#!/usr/bin/env python3
+# Stdlib
import os
+# Snekchek
from flask import Flask
app = Flask(__name__)
-app.secret_key = os.environ.get("WEBPAGE_SECRET_KEY")
+app._secret_key = os.environ.get("WEBPAGE_SECRET_KEY")
@app.route("/")
-def index():
- return "Shrek is a good movie"
+def _index():
+ return "Robots are taking over"
if __name__ == '__main__':