Skip to content

Commit 17841b1

Browse files
vfdev-5Ishan-Kumar2
authored andcommitted
Fixed mypy to 0.910 (pytorch#2362)
* [skip ci] FIxed mypy to 0.910 * Update run_code_style.bat * Update unit-tests.yml
1 parent 22c55bd commit 17841b1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/unit-tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- "ignite/**"
66
- "tests/ignite/**"
77
- "tests/run_cpu_tests.sh"
8+
- "tests/run_code_style.sh"
89
- "examples/**.py"
910
- "requirements-dev.txt"
1011
- ".github/workflows/unit-tests.yml"
@@ -14,6 +15,7 @@ on:
1415
- "ignite/**"
1516
- "tests/ignite/**"
1617
- "tests/run_cpu_tests.sh"
18+
- "tests/run_code_style.sh"
1719
- "examples/**.py"
1820
- "requirements-dev.txt"
1921
- ".github/workflows/unit-tests.yml"

tests/run_code_style.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ mypy --config-file mypy.ini
2222
goto end
2323

2424
:install
25-
pip install flake8 "black==19.10b0" "isort==5.7.0" mypy
25+
pip install flake8 "black==19.10b0" "isort==5.7.0" "mypy==0.910"
2626
goto end
2727

2828
:end

tests/run_code_style.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ elif [ $1 = "fmt" ]; then
1212
elif [ $1 = "mypy" ]; then
1313
mypy --config-file mypy.ini
1414
elif [ $1 = "install" ]; then
15-
pip install flake8 "black==19.10b0" "isort==5.7.0" mypy
15+
pip install flake8 "black==19.10b0" "isort==5.7.0" "mypy==0.910"
1616
fi

0 commit comments

Comments
 (0)