diff options
Diffstat (limited to '')
| -rw-r--r-- | .snekrc | 9 | ||||
| -rw-r--r-- | __main__.py | 4 | 
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)  |