Skip to content

Commit

Permalink
Fix CI builds with pytype in Python 3.8+
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Nov 6, 2020
1 parent c279590 commit aa834e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions scripts/install_all_and_run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ else
pip install -e ".[adapter]" && \
black slack_bolt/ tests/ && \
pytest && \
pip install -U pytype && \
pytype slack_bolt/
fi
6 changes: 4 additions & 2 deletions scripts/run_pytype.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
# ./scripts/run_pytype.sh

script_dir=$(dirname $0)
cd ${script_dir}/..
pip install -e ".[adapter]" && pytype slack_bolt/
cd ${script_dir}/.. && \
pip install -e ".[adapter]" && \
pip install -U pytype && \
pytype slack_bolt/
1 change: 1 addition & 0 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ else
black slack_bolt/ tests/ \
&& pytest \
&& pip install -e ".[adapter]" \
&& pip install -U pytype \
&& pytype slack_bolt/
else
black slack_bolt/ tests/ && pytest
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"pytest-asyncio<1", # for async
"aiohttp>=3,<4", # for async
"black==19.10b0",
"pytype",
]

setuptools.setup(
Expand Down

0 comments on commit aa834e0

Please sign in to comment.