-
Notifications
You must be signed in to change notification settings - Fork 264
/
run_mypy.py
executable file
·63 lines (61 loc) · 2.02 KB
/
run_mypy.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import subprocess
import sys
modules = [
"run_strategy_indexer.py",
"axelrod/action.py",
"axelrod/deterministic_cache.py",
"axelrod/ecosystem.py",
"axelrod/evolvable_player.py",
"axelrod/fingerprint.py",
"axelrod/game.py",
"axelrod/load_data_.py",
"axelrod/mock_player.py",
"axelrod/moran.py",
"axelrod/plot.py",
"axelrod/random_.py",
"axelrod/tournament.py",
"axelrod/strategies/adaptive.py",
"axelrod/strategies/alternator.py",
"axelrod/strategies/ann.py",
"axelrod/strategies/apavlov.py",
"axelrod/strategies/appeaser.py",
"axelrod/strategies/averagecopier.py",
"axelrod/strategies/axelrod_first.py",
"axelrod/strategies/axelrod_second.py",
"axelrod/strategies/backstabber.py",
"axelrod/strategies/better_and_better.py",
"axelrod/strategies/calculator.py",
"axelrod/strategies/cooperator.py",
"axelrod/strategies/cycler.py",
"axelrod/strategies/darwin.py",
"axelrod/strategies/defector.py",
"axelrod/strategies/forgiver.py",
"axelrod/strategies/gradualkiller.py",
"axelrod/strategies/grudger.py",
"axelrod/strategies/grumpy.py",
"axelrod/strategies/handshake.py",
"axelrod/strategies/hunter.py",
"axelrod/strategies/inverse.py",
"axelrod/strategies/mathematicalconstants.py",
"axelrod/strategies/memoryone.py",
"axelrod/strategies/memorytwo.py",
"axelrod/strategies/mutual.py",
"axelrod/strategies/negation.py",
"axelrod/strategies/oncebitten.py",
"axelrod/strategies/prober.py",
"axelrod/strategies/punisher.py",
"axelrod/strategies/qlearner.py",
"axelrod/strategies/rand.py",
"axelrod/strategies/titfortat.py",
"axelrod/strategies/hmm.py",
"axelrod/strategies/human.py",
"axelrod/strategies/finite_state_machines.py",
"axelrod/strategies/worse_and_worse.py",
]
exit_codes = []
for module in modules:
rc = subprocess.call(
["mypy", "--ignore-missing-imports", "--follow-imports", "skip", module]
)
exit_codes.append(rc)
sys.exit(max(exit_codes))