create monkeypatching function for adding get_item dunder (#526)

* run black

* create monkeypatching function for adding get_item dunder

* whoops i forgot the test

* change the name in INSTALLED_APPS to make test pass

* turn the whole thing into a proper package

* move django_stubs_ext to requirements.txt

* also install requirements.txt

* attempt to fix pre-commit

* numerous small code review fixes

* fix dependency issues

* small dependency fixes

* configure proper license file location

* add the rest of the monkeypatching

* use strict mypy

* update contributing with a note monkeypatching generics

* copy release script from parent package
This commit is contained in:
proxy
2020-11-11 02:04:13 -05:00
committed by GitHub
parent e798b496c0
commit 0c41d0c6e9
18 changed files with 223 additions and 4 deletions

View File

@@ -35,5 +35,12 @@ repos:
entry: mypy
language: system
types: [ python ]
exclude: "scripts/*"
exclude: "scripts/|django_stubs_ext/"
args: [ "--cache-dir=/dev/null", "--no-incremental" ]
- id: mypy
name: mypy (django_stubs_ext)
entry: mypy
language: system
types: [ python ]
files: "django_stubs_ext/|django_stubs_ext/tests/"
args: [ "--cache-dir=/dev/null", "--no-incremental", "--strict" ]