mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-08 21:15:22 +08:00
add missing plugin entrypoint, add plugins.ini mypy config with plugins specified
This commit is contained in:
1 parent
a6580af216
commit
0bd4bc98fc
3 files changed
+9
-1
No files matched your search
@@ -0,0 +1,2 @@
|
||||
[mypy]
|
||||
plugins = mypy_django_plugin.plugins.postgres_fields
|
||||
+3
-1
@@ -9,6 +9,7 @@ from mypy.test.helpers import assert_string_arrays_equal
|
||||
|
||||
ROOT_DIR = Path(__file__).parent.parent
|
||||
TEST_DATA_DIR = ROOT_DIR / 'test' / 'test-data'
|
||||
MYPY_INI_PATH = ROOT_DIR / 'test' / 'plugins.ini'
|
||||
|
||||
|
||||
class DjangoTestSuite(DataSuite):
|
||||
@@ -23,7 +24,8 @@ class DjangoTestSuite(DataSuite):
|
||||
|
||||
mypy_cmdline = [
|
||||
'--show-traceback',
|
||||
'--no-silence-site-packages'
|
||||
'--no-silence-site-packages',
|
||||
'--config-file={}'.format(MYPY_INI_PATH)
|
||||
]
|
||||
mypy_cmdline.append('--python-version={}'.format('.'.join(map(str,
|
||||
sys.version_info[:2]))))
|
||||
|
||||
Reference in new issue
Block a user