File tree Expand file tree Collapse file tree 2 files changed +1
-31
lines changed Expand file tree Collapse file tree 2 files changed +1
-31
lines changed Original file line number Diff line number Diff line change 43
43
- name : Run mypy on stubs
44
44
run : mypy --cache-dir=/dev/null --no-incremental django-stubs
45
45
46
- test :
47
- timeout-minutes : 15
48
- runs-on : ubuntu-latest
49
- strategy :
50
- matrix :
51
- python-version : ['3.10', '3.11', '3.12', '3.13']
52
- shard : [0, 1, 2, 3]
53
- fail-fast : false
54
- steps :
55
- - uses : actions/checkout@v4
56
- - name : Setup system dependencies
57
- run : |
58
- sudo apt-get update
59
- sudo apt-get install binutils libproj-dev gdal-bin
60
- - name : Set up Python ${{ matrix.python-version }}
61
- uses : actions/setup-python@v5
62
- with :
63
- python-version : ${{ matrix.python-version }}
64
- - name : Install dependencies
65
- run : |
66
- pip install -U pip "setuptools<79.0.0" wheel
67
- SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
68
-
69
- # Must match `shard` definition in the test matrix:
70
- - name : Run pytest tests
71
- run : PYTHONPATH='.' pytest --num-shards=4 --shard-id=${{ matrix.shard }} -n auto tests
72
- - name : Run mypy on the test cases
73
- run : mypy --strict tests/assert_type
74
-
75
46
stubtest :
76
47
timeout-minutes : 10
77
48
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 45
45
resolve_manager_method ,
46
46
)
47
47
from mypy_django_plugin .transformers .models import (
48
- MetaclassAdjustments ,
49
48
handle_annotated_type ,
50
49
process_model_class ,
51
50
set_auth_user_model_boolean_fields ,
@@ -226,7 +225,7 @@ def get_customize_class_mro_hook(self, fullname: str) -> Callable[[ClassDefConte
226
225
227
226
def get_metaclass_hook (self , fullname : str ) -> Callable [[ClassDefContext ], None ] | None :
228
227
if fullname == fullnames .MODEL_METACLASS_FULLNAME :
229
- return MetaclassAdjustments . adjust_model_class
228
+ return None
230
229
return None
231
230
232
231
def get_base_class_hook (self , fullname : str ) -> Callable [[ClassDefContext ], None ] | None :
You can’t perform that action at this time.
0 commit comments