Skip to content

Commit

Permalink
add type stub monkeypatches
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Jan 19, 2023
1 parent 8ac0eec commit f89756e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conreq/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from pathlib import Path
from typing import Any

import django_stubs_ext
from django.core.management.utils import get_random_secret_key
from split_settings.tools import include
from tzlocal import get_localzone_name
Expand All @@ -32,6 +33,10 @@
)
from conreq.utils.packages import find_packages

# Monkey patches for type hints
django_stubs_ext.monkeypatch()


# Project Directories
ROOT_DIR = Path(__file__).resolve().parent.parent
INTERNAL_DIR = ROOT_DIR / "conreq" / "internal"
Expand Down
1 change: 1 addition & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
black
django-stubs[compatible-mypy]
django_stubs_ext
flake8
flake8-django
mypy
Expand Down

0 comments on commit f89756e

Please sign in to comment.