Skip to content

Commit f770731

Browse files
authored
Fix CI build errors (#339)
* Updated gitpython dependency to fix error: ModuleNotFoundError: No module named 'gitdb.utils.compat' * Updated Django repository git refs because old 3.0.x commit hash gave error: stderr: 'fatal: reference is not a tree: 6cb30414bc0f83b49afc4cae76d4af5656effe9a' * Newer Django version also needs new ignores.
1 parent fe3b95c commit f770731

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ psycopg2
44
flake8==3.7.9
55
flake8-pyi==19.3.0
66
isort==4.3.21
7-
gitpython==3.0.5
7+
gitpython==3.1.0
88
-e .

scripts/enabled_test_modules.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
],
110110
'builtin_server': [
111111
'"ServerHandler" has no attribute',
112+
'Incompatible types in assignment (expression has type "Tuple[BytesIO, BytesIO]"',
112113
],
113114
'bulk_create': [
114115
'has incompatible type "List[Country]"; expected "Iterable[TwoFields]"',
@@ -282,6 +283,7 @@
282283
'"ImageFile" has no attribute "was_opened"',
283284
'Incompatible type for "size" of "FloatModel" (got "object", expected "Union[float, int, str, Combinable]")',
284285
'Incompatible type for "value" of "IntegerModel" (got "object", expected',
286+
'"Child" has no attribute "get_foo_display"',
285287
],
286288
'model_forms': [
287289
'"render" of "Widget"',

scripts/typecheck_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
)
1515

1616
DJANGO_COMMIT_REFS: Dict[str, Tuple[str, str]] = {
17-
'2.2': ('stable/2.2.x', '86befcc172c23170a720b3e0c06db51a99b3da59'),
18-
'3.0': ('stable/3.0.x', '6cb30414bc0f83b49afc4cae76d4af5656effe9a')
17+
'2.2': ('stable/2.2.x', '996be04c3ceb456754d9d527d4d708f30727f07e'),
18+
'3.0': ('stable/3.0.x', 'd9f1792c7649e9f946f4a3a35a76bddf5a412b8b')
1919
}
2020
PROJECT_DIRECTORY = Path(__file__).parent.parent
2121
DJANGO_SOURCE_DIRECTORY = PROJECT_DIRECTORY / 'django-sources' # type: Path

0 commit comments

Comments
 (0)