mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-05-19 23:09:56 +08:00
Adds support for pyproject.toml files (#639)
* Adds support for pyproject.toml files Since mypy 0.900 the pyproject.toml files are supported. This PR adds a support for it. It searchs for a `tool.django-stubs` section. This is an example configuration: ``` [tool.django-stubs] django_settings_module = "config.settings.local" ``` Fixes #638 * Added TOML tests * Use textwrap.dedent instead of trying to manually replace spaces
This commit is contained in:
@@ -6,5 +6,6 @@ pre-commit==2.7.1
|
||||
pytest==6.1.1
|
||||
pytest-mypy-plugins==1.6.1
|
||||
psycopg2-binary
|
||||
types-toml==0.1.1
|
||||
-e ./django_stubs_ext
|
||||
-e .
|
||||
|
||||
Reference in New Issue
Block a user