Skip to content

Commit 22ca9ba

Browse files
authored
Pin mypy < 1.7 (pydata#8458)
* Pin mypy < 1.7 * ALso 3.9 * restrict CI
1 parent 72abfdf commit 22ca9ba

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci-additional.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: CI Additional
22
on:
33
push:
44
branches:
5-
- "*"
5+
- "main"
66
pull_request:
77
branches:
8-
- "*"
8+
- "main"
99
workflow_dispatch: # allows you to trigger manually
1010

1111
concurrency:
@@ -117,7 +117,7 @@ jobs:
117117
python xarray/util/print_versions.py
118118
- name: Install mypy
119119
run: |
120-
python -m pip install mypy --force-reinstall
120+
python -m pip install "mypy<1.7" --force-reinstall
121121
122122
- name: Run mypy
123123
run: |
@@ -171,7 +171,7 @@ jobs:
171171
python xarray/util/print_versions.py
172172
- name: Install mypy
173173
run: |
174-
python -m pip install mypy --force-reinstall
174+
python -m pip install "mypy<1.7" --force-reinstall
175175
176176
- name: Run mypy
177177
run: |

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: CI
22
on:
33
push:
44
branches:
5-
- "*"
5+
- "main"
66
pull_request:
77
branches:
8-
- "*"
8+
- "main"
99
workflow_dispatch: # allows you to trigger manually
1010

1111
concurrency:

0 commit comments

Comments
 (0)