From bff01971735289fafa74f4850d706579eae5faa8 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 6 Feb 2018 01:02:41 +0000 Subject: Revert "Mart's Missing Files 2: Electric Boogaloo" This reverts commit 962be09 --- .snekrc | 19 ++----------------- .travis.yml | 5 +---- error_handlers/http_404.py | 11 ----------- routes/healthcheck.py | 14 -------------- routes/index.py | 11 ----------- routes/invite.py | 12 ------------ 6 files changed, 3 insertions(+), 69 deletions(-) delete mode 100644 error_handlers/http_404.py delete mode 100644 routes/healthcheck.py delete mode 100644 routes/index.py delete mode 100644 routes/invite.py diff --git a/.snekrc b/.snekrc index db963566..3f26eea5 100644 --- a/.snekrc +++ b/.snekrc @@ -1,21 +1,6 @@ [all] -linters = flake8, safety, dodgy, yapf, isort +linters = flake8, safety, dodgy [flake8] max-line-length=120 -application_import_names=pysite -ignore=I100,I201 - -[isort] -line_length=120 -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=Site Internals -force_sort_within_sections=true - -[style] # yapf \ No newline at end of file +application_import_names=pysite \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 30c17486..90ae14fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,4 @@ install: script: - snekchek after_success: - "curl $AUTODEPLOY_WEBHOOK -H \"token: $AUTODEPLOY_TOKEN\"" - -notifications: - email: false + "curl $AUTODEPLOY_WEBHOOK -H \"token: $AUTODEPLOY_TOKEN\"" \ No newline at end of file diff --git a/error_handlers/http_404.py b/error_handlers/http_404.py deleted file mode 100644 index 5920806f..00000000 --- a/error_handlers/http_404.py +++ /dev/null @@ -1,11 +0,0 @@ -# coding=utf-8 - -# External Libraries -from werkzeug.wrappers import Response - - -class Index: - error_code = 404 - - def err(self): - return Response("Page not found!", 404) diff --git a/routes/healthcheck.py b/routes/healthcheck.py deleted file mode 100644 index f06b18d3..00000000 --- a/routes/healthcheck.py +++ /dev/null @@ -1,14 +0,0 @@ -# coding=utf-8 - -# External Libraries -from werkzeug.wrappers import Response - -# Site Internals -import ujson as json - - -class Index: - path = ["/healthcheck"] - - def get(self): - return Response(json.dumps({"status": "ok"})) diff --git a/routes/index.py b/routes/index.py deleted file mode 100644 index 403e5452..00000000 --- a/routes/index.py +++ /dev/null @@ -1,11 +0,0 @@ -# coding=utf-8 - -# External Libraries -from werkzeug.wrappers import Response - - -class Index: - path = ["/", "/index"] - - def get(self): - return Response("Coming soon:tm:") diff --git a/routes/invite.py b/routes/invite.py deleted file mode 100644 index a3400cf2..00000000 --- a/routes/invite.py +++ /dev/null @@ -1,12 +0,0 @@ -# coding=utf-8 - -# External Libraries -from werkzeug.wrappers import Response - - -class Index: - path = ["/invite"] - - def get(self): - return Response( - status_code=301, text="http://invite.pythondiscord.com/") -- cgit v1.2.3