Skip to content

Commit b9b5d8b

Browse files
xiexinchMeowZheng
andauthored
[CI] Upgrade the version of isort to fix lint error (open-mmlab#2519)
## Motivation open-mmlab/mmeval#85 --------- Co-authored-by: Miao Zheng <[email protected]>
1 parent a115b10 commit b9b5d8b

File tree

5 files changed

+23
-24
lines changed

5 files changed

+23
-24
lines changed

.circleci/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ jobs:
6161
command: |
6262
pip install git+https://github.com/open-mmlab/mmengine.git@main
6363
pip install -U openmim
64-
mim install 'mmcv>=2.0.0rc3'
64+
mim install 'mmcv==2.0.0rc3'
6565
pip install git+https://github.com/open-mmlab/[email protected]
66-
pip install git+https://github.com/open-mmlab/[email protected]
66+
mim install 'mmdet==3.0.0rc5'
6767
pip install -r requirements/tests.txt -r requirements/optional.txt
6868
- run:
6969
name: Build and install
@@ -97,7 +97,6 @@ jobs:
9797
command: |
9898
git clone -b main --depth 1 https://github.com/open-mmlab/mmengine.git /home/circleci/mmengine
9999
git clone -b dev-1.x --depth 1 https://github.com/open-mmlab/mmclassification.git /home/circleci/mmclassification
100-
git clone -b dev-3.x --depth 1 https://github.com/open-mmlab/mmdetection.git /home/circleci/mmdetection
101100
- run:
102101
name: Build Docker image
103102
command: |
@@ -108,9 +107,9 @@ jobs:
108107
command: |
109108
docker exec mmseg pip install -e /mmengine
110109
docker exec mmseg pip install -U openmim
111-
docker exec mmseg mim install 'mmcv>=2.0.0rc3'
110+
docker exec mmseg mim install 'mmcv==2.0.0rc3'
112111
docker exec mmseg pip install -e /mmclassification
113-
docker exec mmseg pip install -e /mmdetection
112+
docker exec mmseg mim install 'mmdet==3.0.0rc5'
114113
docker exec mmseg pip install -r requirements/tests.txt -r requirements/optional.txt
115114
- run:
116115
name: Build and install

.github/workflows/merge_stage_test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
python -V
4545
pip install -U openmim
4646
pip install git+https://github.com/open-mmlab/mmengine.git
47-
mim install 'mmcv>=2.0.0rc3'
47+
mim install 'mmcv==2.0.0rc3'
4848
pip install git+https://github.com/open-mmlab/[email protected]
49-
pip install git+https://github.com/open-mmlab/[email protected]
49+
mim install 'mmdet==3.0.0rc5'
5050
- name: Install unittest dependencies
5151
run: pip install -r requirements/tests.txt -r requirements/optional.txt
5252
- name: Build and install
@@ -100,9 +100,9 @@ jobs:
100100
python -V
101101
pip install -U openmim
102102
pip install git+https://github.com/open-mmlab/mmengine.git
103-
mim install 'mmcv>=2.0.0rc3'
103+
mim install 'mmcv==2.0.0rc3'
104104
pip install git+https://github.com/open-mmlab/[email protected]
105-
pip install git+https://github.com/open-mmlab/[email protected]
105+
mim install 'mmdet==3.0.0rc5'
106106
- name: Install unittest dependencies
107107
run: pip install -r requirements/tests.txt -r requirements/optional.txt
108108
- name: Build and install
@@ -166,9 +166,9 @@ jobs:
166166
python -V
167167
pip install -U openmim
168168
pip install git+https://github.com/open-mmlab/mmengine.git
169-
mim install 'mmcv>=2.0.0rc3'
169+
mim install 'mmcv==2.0.0rc3'
170170
pip install git+https://github.com/open-mmlab/[email protected]
171-
pip install git+https://github.com/open-mmlab/[email protected]
171+
mim install 'mmdet==3.0.0rc5'
172172
- name: Install unittest dependencies
173173
run: pip install -r requirements/tests.txt -r requirements/optional.txt
174174
- name: Build and install
@@ -209,9 +209,9 @@ jobs:
209209
python -V
210210
pip install -U openmim
211211
pip install git+https://github.com/open-mmlab/mmengine.git
212-
mim install 'mmcv>=2.0.0rc3'
212+
mim install 'mmcv==2.0.0rc3'
213213
pip install git+https://github.com/open-mmlab/[email protected]
214-
pip install git+https://github.com/open-mmlab/[email protected]
214+
mim install 'mmdet==3.0.0rc5'
215215
- name: Install unittest dependencies
216216
run: pip install -r requirements/tests.txt -r requirements/optional.txt
217217
- name: Build and install
@@ -246,7 +246,7 @@ jobs:
246246
pip install git+https://github.com/open-mmlab/mmengine.git
247247
mim install 'mmcv>=2.0.0rc3'
248248
pip install git+https://github.com/open-mmlab/[email protected]
249-
pip install git+https://github.com/open-mmlab/[email protected]
249+
mim install 'mmdet==3.0.0rc5'
250250
- name: Install unittest dependencies
251251
run: pip install -r requirements/tests.txt -r requirements/optional.txt
252252
- name: Build and install

.github/workflows/pr_stage_test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
run: |
4545
pip install -U openmim
4646
pip install git+https://github.com/open-mmlab/mmengine.git
47-
mim install 'mmcv>=2.0.0rc3'
47+
mim install 'mmcv==2.0.0rc3'
4848
pip install git+https://github.com/open-mmlab/[email protected]
49-
pip install git+https://github.com/open-mmlab/[email protected]
49+
mim install 'mmdet==3.0.0rc5'
5050
- name: Install unittest dependencies
5151
run: pip install -r requirements/tests.txt -r requirements/optional.txt
5252
- name: Build and install
@@ -100,9 +100,9 @@ jobs:
100100
python -V
101101
pip install -U openmim
102102
pip install git+https://github.com/open-mmlab/mmengine.git
103-
mim install 'mmcv>=2.0.0rc3'
103+
mim install 'mmcv==2.0.0rc3'
104104
pip install git+https://github.com/open-mmlab/[email protected]
105-
pip install git+https://github.com/open-mmlab/[email protected]
105+
mim install 'mmdet==3.0.0rc5'
106106
- name: Install unittest dependencies
107107
run: pip install -r requirements/tests.txt -r requirements/optional.txt
108108
- name: Build and install
@@ -135,9 +135,9 @@ jobs:
135135
python -V
136136
pip install -U openmim
137137
pip install git+https://github.com/open-mmlab/mmengine.git
138-
mim install 'mmcv>=2.0.0rc3'
138+
mim install 'mmcv==2.0.0rc3'
139139
pip install git+https://github.com/open-mmlab/[email protected]
140-
pip install git+https://github.com/open-mmlab/[email protected]
140+
mim install 'mmdet==3.0.0rc5'
141141
- name: Install unittest dependencies
142142
run: pip install -r requirements/tests.txt -r requirements/optional.txt
143143
- name: Build and install

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ repos:
33
rev: 5.0.4
44
hooks:
55
- id: flake8
6-
- repo: https://github.com/PyCQA/isort
7-
rev: 5.10.1
6+
- repo: https://github.com/zhouzaida/isort
7+
rev: 5.12.1
88
hooks:
99
- id: isort
1010
- repo: https://github.com/pre-commit/mirrors-yapf

requirements/mminstall.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
mmcls>=1.0.0rc0
2-
mmcv>=2.0.0rc3,<2.1.0
3-
mmdet>=3.0.0rc4
2+
mmcv==2.0.0rc3
3+
mmdet==3.0.0rc5
44
mmengine>=0.1.0,<1.0.0

0 commit comments

Comments
 (0)