aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar JoeBanks13 <[email protected]>2018-02-03 13:11:47 +0000
committerGravatar JoeBanks13 <[email protected]>2018-02-03 13:11:47 +0000
commit003e46347bdabee10261ef504ff926fa97ee2034 (patch)
tree813cbe035862490cb17410be802ffb5bf322d5ff
parentMerge pull request #1 from Inveracity/patch-1 (diff)
add snekrc
-rw-r--r--.snekrc9
-rw-r--r--__main__.py4
2 files changed, 12 insertions, 1 deletions
diff --git a/.snekrc b/.snekrc
new file mode 100644
index 00000000..ab516c4b
--- /dev/null
+++ b/.snekrc
@@ -0,0 +1,9 @@
+[all]
+linters = flake8, yapf
+
+[flake8]
+max-line-length = 79
+
+[yapf]
+
+[style] \ No newline at end of file
diff --git a/__main__.py b/__main__.py
index c1a40ad6..9533b89f 100644
--- a/__main__.py
+++ b/__main__.py
@@ -1,8 +1,9 @@
#!/usr/bin/env python3
-from flask import flask
import os
+from flask import Flask
+
app = Flask(__name__)
app.secret_key = os.environ.get("WEBPAGE_SECRET_KEY")
@@ -12,5 +13,6 @@ app.secret_key = os.environ.get("WEBPAGE_SECRET_KEY")
def index():
return "Hello."
+
if __name__ == '__main__':
app.run(port=int(os.environ.get("WEBPAGE_PORT")), debug=False)