Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter Vanden Hove committed Sep 15, 2023
1 parent 2510138 commit 80eb0eb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 83 deletions.
90 changes: 12 additions & 78 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ lxml = { version = ">=4.9", optional = false, allow-prereleases = false } # mypy
mypy = ">=0.9"
typeguard = ">=2.13"
types-python-dateutil = ">=2.8"
# types-setuptools = ">=57.4"
types-setuptools = ">=68.2"
types-requests = ">=2.28"
types-toml = ">=0.10"

Expand Down
5 changes: 3 additions & 2 deletions src/libranet_django/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
import os
import pkg_resources
import pathlib as pl
import typing as tp


# Build paths inside the project like this: BASE_DIR / 'subdir'.
# BASE_DIR = pl.Path(__file__).resolve().parent.parent
DB_DIR = pl.Path(os.getenv("DB_DIR"))
DB_DIR = pl.Path(os.getenv("DB_DIR", ""))


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

ALLOWED_HOSTS = []
ALLOWED_HOSTS: tp.List[str] = []


# Application definition
Expand Down
2 changes: 1 addition & 1 deletion src/libranet_django/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
favicon_view = RedirectView.as_view(url="/static/favicon.png", permanent=True)

urlpatterns = [
re_path(r"^favicon\.ico$", favicon_view),
# re_path(r"^favicon\.ico$", favicon_view),
path("admin/", admin.site.urls),
]
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_cli():
from libranet_django.cli import main

# Invoke the main() function
result = CliRunner().invoke(main)
result = CliRunner().invoke(main) # type: ignore

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

Expand Down

0 comments on commit 80eb0eb

Please sign in to comment.