HumanCompatibleAI / adversarial-policies

Find best-response to a fixed policy in multi-agent RL
MIT License
275 stars 47 forks source link

Enable type checking #33

Closed AdamGleave closed 4 years ago

AdamGleave commented 4 years ago

Adds automatic PyType type checking to Travis (and on commit hook, if you have it enabled).

Fixes some minor type errors.

Does not add type annotations to the code: we can do that gradually as we write/refactor new code.

codecov[bot] commented 4 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@0d21bc5). Click here to learn what that means. The diff coverage is 84.47%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #33   +/-   ##
=========================================
  Coverage          ?   61.41%           
=========================================
  Files             ?       55           
  Lines             ?     4901           
  Branches          ?        0           
=========================================
  Hits              ?     3010           
  Misses            ?     1891           
  Partials          ?        0
Impacted Files Coverage Δ
src/aprl/multi/common_worker.py 100% <ø> (ø)
src/aprl/training/victim_envs.py 94.44% <ø> (ø)
src/aprl/training/scheduling.py 85.18% <ø> (ø)
tests/test_common.py 100% <ø> (ø)
tests/test_agents.py 98.97% <ø> (ø)
src/aprl/policies/base.py 85.91% <ø> (ø)
src/aprl/training/gail_dataset.py 100% <ø> (ø)
src/aprl/envs/sumo_auto_contact.py 100% <ø> (ø)
src/aprl/activations/density/visualize.py 0% <0%> (ø)
src/aprl/visualize/scores.py 0% <0%> (ø)
... and 39 more

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 0d21bc5...348b9cf. Read the comment docs.