aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-02-06 01:02:41 +0000
committerGravatar Gareth Coles <[email protected]>2018-02-06 01:02:41 +0000
commitbff01971735289fafa74f4850d706579eae5faa8 (patch)
treebb2d0c9895e3276077f307bf224de2ef3e2db6e2
parentRevert "Finally fix this garbage" (diff)
Revert "Mart's Missing Files 2: Electric Boogaloo"
This reverts commit 962be09
-rw-r--r--.snekrc19
-rw-r--r--.travis.yml5
-rw-r--r--error_handlers/http_404.py11
-rw-r--r--routes/healthcheck.py14
-rw-r--r--routes/index.py11
-rw-r--r--routes/invite.py12
6 files changed, 3 insertions, 69 deletions
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/")