mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 04:34:29 +08:00
enable bunch of folders
This commit is contained in:
@@ -44,6 +44,10 @@ IGNORED_ERROR_PATTERNS = [
|
||||
'expression has type "property"',
|
||||
'"object" has no attribute "__iter__"',
|
||||
'Too few arguments for "dates" of "QuerySet"',
|
||||
'has no attribute "vendor"',
|
||||
'Argument 1 to "get_list_or_404" has incompatible type "List',
|
||||
'error: "AdminRadioSelect" has no attribute "can_add_related"',
|
||||
re.compile('Cannot determine type of \'(objects|stuff|specimens)\''),
|
||||
re.compile(r'"Callable\[\[(Any(, )?)+\], Any\]" has no attribute'),
|
||||
re.compile(r'"HttpResponseBase" has no attribute "[A-Za-z_]+"'),
|
||||
re.compile(r'Incompatible types in assignment \(expression has type "Tuple\[\]", '
|
||||
@@ -52,9 +56,12 @@ IGNORED_ERROR_PATTERNS = [
|
||||
re.compile(r'Module has no attribute "[A-Za-z_]+"'),
|
||||
re.compile(r'"[A-Za-z\[\]]+" has no attribute "getvalue"'),
|
||||
# TODO: remove when reassignment will be possible (in 0.670? )
|
||||
re.compile(r'Incompatible types in assignment \(expression has type "(QuerySet|List){1}\[[A-Za-z, ]+\]", '
|
||||
r'variable has type "(QuerySet|List){1}\[[A-Za-z, ]+\]"\)'),
|
||||
re.compile(r'Incompatible types in assignment \(expression has type "(QuerySet|List)\[[A-Za-z, ]+\]", '
|
||||
r'variable has type "(QuerySet|List)\[[A-Za-z, ]+\]"\)'),
|
||||
re.compile(r'"(MockRequest|DummyRequest|DummyUser)" has no attribute "[a-zA-Z_]+"'),
|
||||
# TODO: remove when form <-> model plugin support is added
|
||||
re.compile(r'"Model" has no attribute "[A-Za-z_]+"'),
|
||||
re.compile(r'Argument 1 to "get_object_or_404" has incompatible type "(str|Type\[CustomClass\])"'),
|
||||
]
|
||||
|
||||
# Test folders to typecheck
|
||||
@@ -116,7 +123,81 @@ TESTS_DIRS = [
|
||||
'empty',
|
||||
# TODO: 'expressions',
|
||||
'expressions_case',
|
||||
# TODO: 'expressions_window'
|
||||
# TODO: 'expressions_window',
|
||||
# TODO: 'extra_regress',
|
||||
# TODO: 'field_deconstruction',
|
||||
'field_defaults',
|
||||
'field_subclassing',
|
||||
# TODO: 'file_storage',
|
||||
# TODO: 'file_uploads',
|
||||
# TODO: 'files',
|
||||
'filtered_relation',
|
||||
# TODO: 'fixtures',
|
||||
'fixtures_model_package',
|
||||
# TODO: 'fixtures_regress',
|
||||
'flatpages_tests',
|
||||
'force_insert_update',
|
||||
'foreign_object',
|
||||
# TODO: 'forms_tests',
|
||||
'from_db_value',
|
||||
# TODO: 'generic_inline_admin',
|
||||
# TODO: 'generic_relations',
|
||||
'generic_relations_regress',
|
||||
# TODO: 'generic_views',
|
||||
'get_earliest_or_latest',
|
||||
'get_object_or_404',
|
||||
# TODO: 'get_or_create',
|
||||
# TODO: 'gis_tests',
|
||||
'handlers',
|
||||
# TODO: 'httpwrappers',
|
||||
'humanize_tests',
|
||||
# TODO: 'i18n',
|
||||
'import_error_package',
|
||||
'indexes',
|
||||
'inline_formsets',
|
||||
'inspectdb',
|
||||
'introspection',
|
||||
# TODO: 'invalid_models_tests',
|
||||
'known_related_objects',
|
||||
# TODO: 'logging_tests',
|
||||
# TODO: 'lookup',
|
||||
'm2m_and_m2o',
|
||||
'm2m_intermediary',
|
||||
'm2m_multiple',
|
||||
'm2m_recursive',
|
||||
'm2m_regress',
|
||||
'm2m_signals',
|
||||
'm2m_through',
|
||||
'm2m_through_regress',
|
||||
'm2o_recursive',
|
||||
# TODO: 'mail',
|
||||
'managers_regress',
|
||||
'many_to_many',
|
||||
'many_to_one',
|
||||
'many_to_one_null',
|
||||
'max_lengths',
|
||||
# TODO: 'messages_tests',
|
||||
# TODO: 'middleware',
|
||||
# TODO: 'middleware_exceptions',
|
||||
# SKIPPED (all errors are false positives) 'migrate_signals',
|
||||
'migration_test_data_persistence',
|
||||
# TODO: 'migrations',
|
||||
'migrations2',
|
||||
# TODO: 'model_fields',
|
||||
# TODO: 'model_forms',
|
||||
'model_formsets',
|
||||
'model_formsets_regress',
|
||||
'model_indexes',
|
||||
# TODO: 'model_inheritance',
|
||||
'model_inheritance_regress',
|
||||
# SKIPPED (all errors are false positives) 'model_meta',
|
||||
'model_options',
|
||||
'model_package',
|
||||
'model_regress',
|
||||
# TODO: 'modeladmin',
|
||||
# TODO: 'multiple_database',
|
||||
'mutually_referential',
|
||||
'nested_foreign_keys',
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user