uber / petastorm

Petastorm library enables single machine or distributed training and evaluation of deep learning models from datasets in Apache Parquet format. It supports ML frameworks such as Tensorflow, Pytorch, and PySpark and can be used from pure Python code.
Apache License 2.0
1.78k stars 285 forks source link

Use mypy in our CI script #563

Closed selitvin closed 4 years ago

selitvin commented 4 years ago

Using mypy to run static type checking as part of travis build

Fixed some issues causing mypy to fail:

codecov[bot] commented 4 years ago

Codecov Report

Merging #563 into master will increase coverage by 0.04%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #563      +/-   ##
==========================================
+ Coverage   85.10%   85.15%   +0.04%     
==========================================
  Files          87       87              
  Lines        4969     4970       +1     
  Branches      793      793              
==========================================
+ Hits         4229     4232       +3     
+ Misses        593      591       -2     
  Partials      147      147              
Impacted Files Coverage Δ
setup.py 0.00% <ø> (ø)
petastorm/hdfs/tests/test_hdfs_namenode.py 99.65% <100.00%> (+0.68%) :arrow_up:
petastorm/pytorch.py 90.72% <100.00%> (ø)
petastorm/spark/spark_dataset_converter.py 91.04% <100.00%> (+0.03%) :arrow_up:
petastorm/unischema.py 93.98% <100.00%> (+0.05%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 848f7f3...5c3ce63. Read the comment docs.