aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pydis_site/apps/resources/tests/test_views.py2
-rw-r--r--pyproject.toml33
2 files changed, 18 insertions, 17 deletions
diff --git a/pydis_site/apps/resources/tests/test_views.py b/pydis_site/apps/resources/tests/test_views.py
index dab3599d..0af5ce5f 100644
--- a/pydis_site/apps/resources/tests/test_views.py
+++ b/pydis_site/apps/resources/tests/test_views.py
@@ -2,7 +2,7 @@ from pathlib import Path
from django.conf import settings
from django.test import TestCase
-from django_hosts import reverse
+from django.urls import reverse
TESTING_RESOURCES_PATH = Path(
settings.BASE_DIR, "pydis_site", "apps", "resources", "tests", "testing_resources"
diff --git a/pyproject.toml b/pyproject.toml
index 8525a16e..6392f871 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,26 +6,25 @@ authors = ["Python Discord <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
+python = "3.9.*"
django = "~=3.1.14"
-django-distill = "~=2.9.0"
django-environ = "~=0.4.5"
django-filter = "~=21.1"
-django-prometheus = "~=2.1"
-django-simple-bulma = "~=2.4"
djangorestframework = "~=3.12.0"
-gunicorn = "~=20.0.4"
-markdown = "~=3.3.4"
psycopg2-binary = "~=2.8.0"
-python = "3.9.*"
-python-frontmatter = "~=1.0"
-pyyaml = "~=5.1"
+django-simple-bulma = "~=2.4"
+whitenoise = "~=5.0"
requests = "~=2.21"
+pyyaml = "~=5.1"
+gunicorn = "~=20.0.4"
sentry-sdk = "~=0.19"
-whitenoise = "~=5.0"
+markdown = "~=3.3.4"
+python-frontmatter = "~=1.0"
+django-prometheus = "~=2.1"
+django-distill = "~=2.9.0"
[tool.poetry.dev-dependencies]
coverage = "~=5.0"
-coveralls = "~=2.1"
flake8 = "~=3.7"
flake8-annotations = "~=2.0"
flake8-bandit = "~=2.1"
@@ -39,18 +38,20 @@ mccabe = "~=0.6.1"
pep8-naming = "~=0.9"
pre-commit = "~=2.1"
pyfakefs = "~=4.5"
-python-dotenv = "~=0.17.1"
+coveralls = "~=2.1"
taskipy = "~=1.7.0"
+python-dotenv = "~=0.17.1"
[build-system]
-build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
+build-backend = "poetry.core.masonry.api"
[tool.taskipy.tasks]
+start = "python manage.py run --debug"
+makemigrations = "python manage.py makemigrations"
django_shell = "python manage.py shell"
+test = "coverage run manage.py test"
+report = "coverage report -m"
lint = "pre-commit run --all-files"
-makemigrations = "python manage.py makemigrations"
precommit = "pre-commit install"
-report = "coverage report -m"
-start = "python manage.py run --debug"
-test = "coverage run manage.py test"
+static = "python manage.py distill-local build --traceback --force"