diff options
-rw-r--r-- | .snekrc | 22 | ||||
-rw-r--r-- | app.py | 6 |
2 files changed, 5 insertions, 23 deletions
@@ -1,23 +1,5 @@ [all] -linters = flake8, isort, yapf, safety, dodgy, vulture +linters = flake8, safety, dodgy [flake8] -max-line-length=100 - -[isort] -line_length=100 -indent=' ' -multi_line_output=0 -length_sort=1 -use_parentheses=true -sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER -import_heading_stdlib=Stdlib -import_heading_thirdparty=External Libraries -import_heading_firstparty=Snekchek -force_sort_within_sections=true - -[vulture] -min-confidence=60 -exclude=index.py - -[style] +max-line-length=100
\ No newline at end of file @@ -10,15 +10,15 @@ from flask import redirect 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(): +def index(): return "Robots are taking over. doot." @app.route("/invite") -def _invite(): +def invite(): return redirect("https://invite.pythondiscord.com/") @app.route("/healthcheck") |