Skip to content

Commit

Permalink
Run mypy on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
unexge committed Jan 4, 2023
1 parent 50bac1f commit cde0276
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rust-runtime/aws-smithy-http-server-python/examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ run: build
python3 $(CUR_DIR)/pokemon_service.py

py-check: build
mypy pokemon_service.py
python3 -m mypy pokemon_service.py

test: build
test: build py-check
cargo test

clippy: codegen
Expand Down
3 changes: 2 additions & 1 deletion tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ ENV PATH=/opt/cargo/bin:/opt/nodejs/bin:$PATH \
# This is used primarily by the `build.gradle.kts` files in choosing how to execute build tools. If inside the image,
# they will assume the tools are on the PATH, but if outside of the image, they will `cargo run` the tools.
ENV SMITHY_RS_DOCKER_BUILD_IMAGE=1
RUN npm install -g diff2html-cli@5.1.11 && pip3 install --no-cache-dir uvloop==0.16.0 aiohttp==3.8.1
RUN npm install -g diff2html-cli@5.1.11 && \
pip3 install --no-cache-dir uvloop==0.16.0 aiohttp==3.8.1 mypy==0.991
WORKDIR /home/build
COPY ci-build/scripts/sanity-test /home/build/sanity-test
RUN /home/build/sanity-test

0 comments on commit cde0276

Please sign in to comment.