Skip to content

Commit aa834e0

Browse files
committed
Fix CI builds with pytype in Python 3.8+
1 parent c279590 commit aa834e0

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

scripts/install_all_and_run_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ else
2222
pip install -e ".[adapter]" && \
2323
black slack_bolt/ tests/ && \
2424
pytest && \
25+
pip install -U pytype && \
2526
pytype slack_bolt/
2627
fi

scripts/run_pytype.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
# ./scripts/run_pytype.sh
33

44
script_dir=$(dirname $0)
5-
cd ${script_dir}/..
6-
pip install -e ".[adapter]" && pytype slack_bolt/
5+
cd ${script_dir}/.. && \
6+
pip install -e ".[adapter]" && \
7+
pip install -U pytype && \
8+
pytype slack_bolt/

scripts/run_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ else
2020
black slack_bolt/ tests/ \
2121
&& pytest \
2222
&& pip install -e ".[adapter]" \
23+
&& pip install -U pytype \
2324
&& pytype slack_bolt/
2425
else
2526
black slack_bolt/ tests/ && pytest

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"pytest-asyncio<1", # for async
1818
"aiohttp>=3,<4", # for async
1919
"black==19.10b0",
20-
"pytype",
2120
]
2221

2322
setuptools.setup(

0 commit comments

Comments
 (0)