Skip to content

Commit 80eb0eb

Browse files
author
Wouter Vanden Hove
committed
update
1 parent 2510138 commit 80eb0eb

File tree

5 files changed

+18
-83
lines changed

5 files changed

+18
-83
lines changed

poetry.lock

+12-78
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ lxml = { version = ">=4.9", optional = false, allow-prereleases = false } # mypy
239239
mypy = ">=0.9"
240240
typeguard = ">=2.13"
241241
types-python-dateutil = ">=2.8"
242-
# types-setuptools = ">=57.4"
242+
types-setuptools = ">=68.2"
243243
types-requests = ">=2.28"
244244
types-toml = ">=0.10"
245245

src/libranet_django/settings.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
import os
1414
import pkg_resources
1515
import pathlib as pl
16+
import typing as tp
1617

1718

1819
# Build paths inside the project like this: BASE_DIR / 'subdir'.
1920
# BASE_DIR = pl.Path(__file__).resolve().parent.parent
20-
DB_DIR = pl.Path(os.getenv("DB_DIR"))
21+
DB_DIR = pl.Path(os.getenv("DB_DIR", ""))
2122

2223

2324
# Quick-start development settings - unsuitable for production
@@ -29,7 +30,7 @@
2930
# SECURITY WARNING: don't run with debug turned on in production!
3031
DEBUG = os.getenv("DJANGO_DEBUG")
3132

32-
ALLOWED_HOSTS = []
33+
ALLOWED_HOSTS: tp.List[str] = []
3334

3435

3536
# Application definition

src/libranet_django/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
favicon_view = RedirectView.as_view(url="/static/favicon.png", permanent=True)
2323

2424
urlpatterns = [
25-
re_path(r"^favicon\.ico$", favicon_view),
25+
# re_path(r"^favicon\.ico$", favicon_view),
2626
path("admin/", admin.site.urls),
2727
]

tests/test_cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_cli():
1212
from libranet_django.cli import main
1313

1414
# Invoke the main() function
15-
result = CliRunner().invoke(main)
15+
result = CliRunner().invoke(main) # type: ignore
1616

1717
assert result.output.strip() == "libranet_django."
1818

0 commit comments

Comments
 (0)