kellerza / pysma

Async library for SMA Solar's WebConnect interface
MIT License
59 stars 51 forks source link

Add type annotations #69

Closed rklomp closed 3 years ago

rklomp commented 3 years ago

Add type annotations and adds pre-commit hook and git workflow to force typing using mypy

codecov[bot] commented 3 years ago

Codecov Report

Merging #69 (07c0bff) into master (f1103ab) will increase coverage by 0.11%. The diff coverage is 96.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #69      +/-   ##
==========================================
+ Coverage   95.69%   95.81%   +0.11%     
==========================================
  Files           6        6              
  Lines         395      406      +11     
==========================================
+ Hits          378      389      +11     
  Misses         17       17              
Impacted Files Coverage Δ
pysma/__init__.py 90.96% <92.59%> (+0.48%) :arrow_up:
pysma/sensor.py 98.88% <100.00%> (+0.02%) :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 f1103ab...07c0bff. Read the comment docs.