diff --git a/monkeytype.txt b/monkeytype.txt new file mode 100644 index 000000000..13504707c --- /dev/null +++ b/monkeytype.txt @@ -0,0 +1,7 @@ +Gather data via unit tests: + +$ monkeytype run -m nose + +Then apply types to a file: + +$ monkeytype apply anki.sched diff --git a/monkeytype_config.py b/monkeytype_config.py new file mode 100644 index 000000000..0992875e7 --- /dev/null +++ b/monkeytype_config.py @@ -0,0 +1,9 @@ +from monkeytype.config import DefaultConfig +from monkeytype.typing import * + +class MyConfig(DefaultConfig): + def type_rewriter(self): + rws = (RemoveEmptyContainers(),RewriteConfigDict(),RewriteLargeUnion(2)) + return ChainedRewriter(rws) + +CONFIG = MyConfig()