Skip to content

Commit 54e5882

Browse files
committed
code reformatted using black
1 parent f98b4fe commit 54e5882

35 files changed

+1169
-619
lines changed

.circleci/tests/learning.py

+26-21
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99
reward = torch.randn(10, 1)
1010
next_state = torch.randn(10, 1290)
1111
done = torch.randn(10, 1)
12-
batch = {'state': state, 'action': action, 'reward': reward, 'next_state': next_state, 'done': done}
12+
batch = {
13+
"state": state,
14+
"action": action,
15+
"reward": reward,
16+
"next_state": next_state,
17+
"done": done,
18+
}
1319

1420
value_net = recnn.nn.Critic(1290, 128, 256, 54e-2)
1521
policy_net = recnn.nn.Actor(1290, 128, 256, 6e-1)
@@ -25,9 +31,9 @@ def test_recommendation():
2531

2632

2733
def check_loss_and_networks(loss, nets):
28-
assert loss['value'] > 0 and loss['policy'] != 0 and loss['step'] == 0
34+
assert loss["value"] > 0 and loss["policy"] != 0 and loss["step"] == 0
2935
for name, netw in nets.items():
30-
assert netw.training == ('target' not in name)
36+
assert netw.training == ("target" not in name)
3137

3238

3339
def test_update_function():
@@ -37,48 +43,47 @@ def test_update_function():
3743
target_policy_net.eval()
3844
target_value_net.eval()
3945

40-
4146
# soft update
4247
recnn.utils.soft_update(value_net, target_value_net, soft_tau=1.0)
4348
recnn.utils.soft_update(policy_net, target_policy_net, soft_tau=1.0)
4449

4550
# define optimizers
46-
value_optimizer = optim.RAdam(value_net.parameters(),
47-
lr=1e-5, weight_decay=1e-2)
48-
policy_optimizer = optim.RAdam(policy_net.parameters(), lr=1e-5 , weight_decay=1e-2)
51+
value_optimizer = optim.RAdam(value_net.parameters(), lr=1e-5, weight_decay=1e-2)
52+
policy_optimizer = optim.RAdam(policy_net.parameters(), lr=1e-5, weight_decay=1e-2)
4953

5054
nets = {
51-
'value_net': value_net,
52-
'target_value_net': target_value_net,
53-
'policy_net': policy_net,
54-
'target_policy_net': target_policy_net,
55+
"value_net": value_net,
56+
"target_value_net": target_value_net,
57+
"policy_net": policy_net,
58+
"target_policy_net": target_policy_net,
5559
}
5660

5761
optimizer = {
58-
'policy_optimizer': policy_optimizer,
59-
'value_optimizer': value_optimizer
62+
"policy_optimizer": policy_optimizer,
63+
"value_optimizer": value_optimizer,
6064
}
6165

6266
debug = {}
6367
writer = recnn.utils.misc.DummyWriter()
6468

6569
step = 0
6670
params = {
67-
'gamma' : 0.99,
68-
'min_value' : -10,
69-
'max_value' : 10,
70-
'policy_step': 10,
71-
'soft_tau' : 0.001,
71+
"gamma": 0.99,
72+
"min_value": -10,
73+
"max_value": 10,
74+
"policy_step": 10,
75+
"soft_tau": 0.001,
7276
}
7377

74-
loss = recnn.nn.update.ddpg_update(batch, params, nets, optimizer,
75-
torch.device('cpu'), debug, writer, step=step)
78+
loss = recnn.nn.update.ddpg_update(
79+
batch, params, nets, optimizer, torch.device("cpu"), debug, writer, step=step
80+
)
7681

7782
check_loss_and_networks(loss, nets)
7883

7984

8085
def test_algo():
81-
value_net = recnn.nn.Critic(1290, 128, 256, 54e-2)
86+
value_net = recnn.nn.Critic(1290, 128, 256, 54e-2)
8287
policy_net = recnn.nn.Actor(1290, 128, 256, 6e-1)
8388

8489
ddpg = recnn.nn.DDPG(policy_net, value_net)

.pyre/client.lock

Whitespace-only changes.

.pyre/configuration_monitor/configuration_monitor.lock

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1879
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2020-08-14 10:25:04 INFO Running as pid: 23069
2+
2020-08-14 10:25:04 INFO Version: 254e297a4983372cc892927884acc90d2d998ad2
3+
2020-08-14 10:25:04 INFO Build info: Linux x86_64 @ Mon Aug 3 11:10:05 PDT 2020
4+
2020-08-14 10:25:04 INFO Connected to server
5+
2020-08-14 12:36:53 ERROR Uncaught exception (exception: End_of_file, exception backtrace: Raised at file "stdlib.ml", line 449, characters 14-31
6+
Called from file "src/in_channel.ml" (inlined), line 62, characters 27-44
7+
Called from file "src/in_channel.ml" (inlined), line 24, characters 25-31
8+
Called from file "src/in_channel.ml" (inlined), line 62, characters 8-45
9+
Called from file "server/language_server/protocol.ml", line 322, characters 2-31
10+
, exception origin: persistent, fatal: true)
11+
Uncaught exception:
12+
13+
End_of_file
14+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2020-08-16 17:49:32 INFO Running as pid: 1911
2+
2020-08-16 17:49:32 INFO Version: 254e297a4983372cc892927884acc90d2d998ad2
3+
2020-08-16 17:49:32 INFO Build info: Linux x86_64 @ Mon Aug 3 11:10:05 PDT 2020
4+
2020-08-16 17:49:32 INFO Connected to server

.pyre/pid_files/persistent-1911.pid

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1911

.pyre/server/adapter.sock

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/tmp/pyre_adapter_1880.sock

.pyre/server/json_server.sock

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/tmp/pyre_json_server_1880.sock

.pyre/server/server.lock

Whitespace-only changes.

.pyre/server/server.pid

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1908

.pyre/server/server.sock

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/tmp/pyre_server_1880.sock

.pyre/server/server.stdout

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/home/mikew/Documents/programming/python/RecNN/.pyre/server/server.stdout.2020-08-16_17-49-32.933201
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2020-08-14 10:25:04 INFO Running as pid: 23068
2+
2020-08-14 10:25:04 INFO Version: 254e297a4983372cc892927884acc90d2d998ad2
3+
2020-08-14 10:25:04 INFO Build info: Linux x86_64 @ Mon Aug 3 11:10:05 PDT 2020
4+
2020-08-14 10:25:04 PERFORMANCE Module tracker built: 0.119400s
5+
2020-08-14 10:25:04 INFO Building type environment...
6+
2020-08-14 10:25:04 INFO Parsing 1015 stubs and sources...
7+
2020-08-14 10:25:05 PERFORMANCE Sources parsed: 1.569017s
8+
2020-08-14 10:25:06 ENVIRONMENT Updating is from empty stub result Environment
9+
2020-08-14 10:25:06 ENVIRONMENT Updating Alias Environment
10+
2020-08-14 10:25:06 ENVIRONMENT Updating Edges Environment
11+
2020-08-14 10:25:06 ENVIRONMENT Updating Class metadata Environment
12+
2020-08-14 10:25:06 ENVIRONMENT Updating parse annotation Environment
13+
2020-08-14 10:25:06 ENVIRONMENT Updating metaclasses Environment
14+
2020-08-14 10:25:06 ENVIRONMENT Updating attributes Environment
15+
2020-08-14 10:25:06 ENVIRONMENT Updating Global Environment
16+
2020-08-14 10:25:06 ENVIRONMENT Updating Global Locations Environment
17+
2020-08-14 10:25:06 PERFORMANCE Full environment built: 2.313574s
18+
2020-08-14 10:25:06 INFO Checking 165 functions...
19+
2020-08-14 10:25:06 ENVIRONMENT Superclass annotation torch.nn.Module is missing
20+
2020-08-14 10:25:06 ENVIRONMENT Superclass annotation torch.nn.Module is missing
21+
2020-08-14 10:25:06 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
22+
2020-08-14 10:25:06 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
23+
2020-08-14 10:25:06 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
24+
2020-08-14 10:25:06 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
25+
2020-08-14 10:25:06 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
26+
2020-08-14 10:25:06 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
27+
2020-08-14 10:25:06 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
28+
2020-08-14 10:25:06 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
29+
2020-08-14 10:25:06 ENVIRONMENT Superclass annotation torch.utils.data.Dataset is missing
30+
2020-08-14 10:25:06 ENVIRONMENT Superclass annotation torch.nn.Module is missing
31+
2020-08-14 10:25:06 ENVIRONMENT Superclass annotation torch.nn.Module is missing
32+
2020-08-14 10:25:06 ENVIRONMENT Superclass annotation torch.nn.Module is missing
33+
2020-08-14 10:25:06 ENVIRONMENT Superclass annotation torch.nn.Module is missing
34+
2020-08-14 10:25:06 PERFORMANCE Check_TypeCheck: 0.214103s
35+
2020-08-14 10:25:06 MEMORY Shared memory size post-typecheck (size: 10)
36+
2020-08-14 10:25:06 PERFORMANCE Initialization: 2.753880s
37+
2020-08-14 10:25:06 INFO Server started using incremental style Configuration.Analysis.FineGrained
38+
2020-08-14 10:25:06 INFO Enabled features = { Configuration.Features.click_to_fix = true; go_to_definition = false;
39+
hover = false }
40+
2020-08-14 10:25:07 PERFORMANCE Server request: 0.001027s
41+
2020-08-14 10:25:07 INFO Request method: initialize
42+
2020-08-14 10:25:07 PERFORMANCE Server request: 0.000029s
43+
2020-08-14 10:25:07 PERFORMANCE Server request: 0.000121s
44+
2020-08-14 10:25:07 PERFORMANCE Server request: 0.000012s
45+
2020-08-14 12:36:53 PERFORMANCE Server request: 0.000027s
46+
2020-08-14 12:36:53 PERFORMANCE Server request: 0.000114s
47+
2020-08-14 12:36:53 PERFORMANCE Server request: 0.000231s
48+
2020-08-14 12:36:53 PERFORMANCE Server request: 0.000429s
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
2020-08-16 17:49:32 INFO Running as pid: 1908
2+
2020-08-16 17:49:32 INFO Version: 254e297a4983372cc892927884acc90d2d998ad2
3+
2020-08-16 17:49:32 INFO Build info: Linux x86_64 @ Mon Aug 3 11:10:05 PDT 2020
4+
2020-08-16 17:49:33 PERFORMANCE Module tracker built: 0.169520s
5+
2020-08-16 17:49:33 INFO Building type environment...
6+
2020-08-16 17:49:33 INFO Parsing 1015 stubs and sources...
7+
2020-08-16 17:49:34 PERFORMANCE Sources parsed: 1.431190s
8+
2020-08-16 17:49:35 ENVIRONMENT Updating is from empty stub result Environment
9+
2020-08-16 17:49:35 ENVIRONMENT Updating Alias Environment
10+
2020-08-16 17:49:35 ENVIRONMENT Updating Edges Environment
11+
2020-08-16 17:49:35 ENVIRONMENT Updating Class metadata Environment
12+
2020-08-16 17:49:35 ENVIRONMENT Updating parse annotation Environment
13+
2020-08-16 17:49:35 ENVIRONMENT Updating metaclasses Environment
14+
2020-08-16 17:49:35 ENVIRONMENT Updating attributes Environment
15+
2020-08-16 17:49:35 ENVIRONMENT Updating Global Environment
16+
2020-08-16 17:49:35 ENVIRONMENT Updating Global Locations Environment
17+
2020-08-16 17:49:35 PERFORMANCE Full environment built: 2.158607s
18+
2020-08-16 17:49:35 INFO Checking 165 functions...
19+
2020-08-16 17:49:35 ENVIRONMENT Superclass annotation torch.nn.Module is missing
20+
2020-08-16 17:49:35 ENVIRONMENT Superclass annotation torch.nn.Module is missing
21+
2020-08-16 17:49:35 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
22+
2020-08-16 17:49:35 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
23+
2020-08-16 17:49:35 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
24+
2020-08-16 17:49:35 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
25+
2020-08-16 17:49:35 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
26+
2020-08-16 17:49:35 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
27+
2020-08-16 17:49:35 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
28+
2020-08-16 17:49:35 ENVIRONMENT Superclass of top (unresolved name: typing.Generic[])
29+
2020-08-16 17:49:35 ENVIRONMENT Superclass annotation torch.utils.data.Dataset is missing
30+
2020-08-16 17:49:35 ENVIRONMENT Superclass annotation torch.nn.Module is missing
31+
2020-08-16 17:49:35 ENVIRONMENT Superclass annotation torch.nn.Module is missing
32+
2020-08-16 17:49:35 ENVIRONMENT Superclass annotation torch.nn.Module is missing
33+
2020-08-16 17:49:35 ENVIRONMENT Superclass annotation torch.nn.Module is missing
34+
2020-08-16 17:49:35 PERFORMANCE Check_TypeCheck: 0.223723s
35+
2020-08-16 17:49:35 MEMORY Shared memory size post-typecheck (size: 10)
36+
2020-08-16 17:49:35 PERFORMANCE Initialization: 2.671526s
37+
2020-08-16 17:49:35 INFO Server started using incremental style Configuration.Analysis.FineGrained
38+
2020-08-16 17:49:35 INFO Enabled features = { Configuration.Features.click_to_fix = true; go_to_definition = false;
39+
hover = false }
40+
2020-08-16 17:49:35 PERFORMANCE Server request: 0.000847s
41+
2020-08-16 17:49:35 INFO Request method: initialize
42+
2020-08-16 17:49:35 PERFORMANCE Server request: 0.000024s
43+
2020-08-16 17:49:35 PERFORMANCE Server request: 0.000082s
44+
2020-08-16 17:49:36 PERFORMANCE Server request: 0.000020s
45+
2020-08-16 17:49:46 PERFORMANCE Server request: 0.000039s
46+
2020-08-16 17:49:46 PERFORMANCE Server request: 0.000146s
47+
2020-08-16 17:49:46 PERFORMANCE Server request: 0.000208s
48+
2020-08-16 17:49:46 PERFORMANCE Server request: 0.000414s
49+
2020-08-16 17:49:46 PERFORMANCE Server request: 0.000112s
50+
2020-08-16 17:49:46 PERFORMANCE Server request: 0.000191s
51+
2020-08-16 17:49:46 PERFORMANCE Server request: 0.000003s
52+
2020-08-16 17:49:46 PERFORMANCE Server request: 0.000054s
53+
2020-08-16 17:49:47 PERFORMANCE Server request: 0.000019s
54+
2020-08-16 17:49:53 PERFORMANCE Server request: 0.000064s
55+
2020-08-16 17:49:53 PERFORMANCE Server request: 0.000183s
56+
2020-08-16 17:49:55 PERFORMANCE Server request: 0.000196s
57+
2020-08-16 17:49:55 PERFORMANCE Server request: 0.000416s
58+
2020-08-16 17:49:56 PERFORMANCE Server request: 0.000004s
59+
2020-08-16 17:49:56 PERFORMANCE Server request: 0.000118s
60+
2020-08-16 17:49:56 PERFORMANCE Server request: 0.000004s
61+
2020-08-16 17:50:14 PERFORMANCE Server request: 0.000063s
62+
2020-08-16 17:50:14 PERFORMANCE Server request: 0.000178s
63+
2020-08-16 17:50:15 PERFORMANCE Server request: 0.000161s
64+
2020-08-16 17:50:15 PERFORMANCE Server request: 0.000280s
65+
2020-08-16 17:50:15 PERFORMANCE Server request: 0.000002s
66+
2020-08-16 17:50:15 PERFORMANCE Server request: 0.000043s
67+
2020-08-16 17:50:15 PERFORMANCE Server request: 0.000004s
68+
2020-08-16 17:50:15 PERFORMANCE Server request: 0.000016s
69+
2020-08-16 17:50:19 PERFORMANCE Server request: 0.000065s
70+
2020-08-16 17:50:19 PERFORMANCE Server request: 0.000192s
71+
2020-08-16 17:50:20 PERFORMANCE Server request: 0.000162s
72+
2020-08-16 17:50:20 PERFORMANCE Server request: 0.000398s
73+
2020-08-16 17:50:20 PERFORMANCE Server request: 0.000002s
74+
2020-08-16 17:50:20 PERFORMANCE Server request: 0.000042s
75+
2020-08-16 17:50:20 PERFORMANCE Server request: 0.000004s
76+
2020-08-16 17:50:20 PERFORMANCE Server request: 0.000016s
77+
2020-08-16 17:50:37 PERFORMANCE Server request: 0.000083s
78+
2020-08-16 17:50:37 PERFORMANCE Server request: 0.000224s
79+
2020-08-16 17:50:38 PERFORMANCE Server request: 0.000223s
80+
2020-08-16 17:50:38 PERFORMANCE Server request: 0.000520s
81+
2020-08-16 17:50:38 PERFORMANCE Server request: 0.000004s
82+
2020-08-16 17:50:38 PERFORMANCE Server request: 0.000171s
83+
2020-08-16 17:50:38 PERFORMANCE Server request: 0.000006s
84+
2020-08-16 17:50:45 PERFORMANCE Server request: 0.000171s
85+
2020-08-16 17:50:45 PERFORMANCE Server request: 0.000321s
86+
2020-08-16 17:50:45 PERFORMANCE Server request: 0.000254s
87+
2020-08-16 17:50:45 PERFORMANCE Server request: 0.000397s
88+
2020-08-16 17:50:55 PERFORMANCE Server request: 0.000004s
89+
2020-08-16 17:50:55 PERFORMANCE Server request: 0.000152s
90+
2020-08-16 17:50:56 PERFORMANCE Server request: 0.000004s
91+
2020-08-16 17:50:56 PERFORMANCE Server request: 0.000153s
92+
2020-08-16 17:51:02 PERFORMANCE Server request: 0.000004s
93+
2020-08-16 17:51:02 PERFORMANCE Server request: 0.000153s
94+
2020-08-16 17:51:10 PERFORMANCE Server request: 0.000003s
95+
2020-08-16 17:51:10 PERFORMANCE Server request: 0.000107s
96+
2020-08-16 17:51:12 PERFORMANCE Server request: 0.000006s
97+
2020-08-16 17:51:12 PERFORMANCE Server request: 0.000161s
98+
2020-08-16 17:51:19 PERFORMANCE Server request: 0.000005s
99+
2020-08-16 17:51:19 PERFORMANCE Server request: 0.000145s
100+
2020-08-16 17:51:19 PERFORMANCE Server request: 0.000004s
101+
2020-08-16 17:51:19 PERFORMANCE Server request: 0.000128s
102+
2020-08-16 17:51:22 PERFORMANCE Server request: 0.000004s
103+
2020-08-16 17:51:22 PERFORMANCE Server request: 0.000149s
104+
2020-08-16 17:51:22 PERFORMANCE Server request: 0.000005s
105+
2020-08-16 17:51:22 PERFORMANCE Server request: 0.000157s
106+
2020-08-16 17:51:24 PERFORMANCE Server request: 0.000004s
107+
2020-08-16 17:51:24 PERFORMANCE Server request: 0.000140s
108+
2020-08-16 17:51:25 PERFORMANCE Server request: 0.000004s
109+
2020-08-16 17:51:25 PERFORMANCE Server request: 0.000137s
110+
2020-08-16 17:51:26 PERFORMANCE Server request: 0.000075s
111+
2020-08-16 17:51:27 PERFORMANCE Server request: 0.000012s
112+
2020-08-16 17:51:27 PERFORMANCE Server request: 0.000104s
113+
2020-08-16 17:51:27 PERFORMANCE Server request: 0.000578s
114+
2020-08-16 17:51:28 PERFORMANCE Server request: 0.000069s
115+
2020-08-16 17:51:28 PERFORMANCE Server request: 0.000373s
116+
2020-08-16 17:51:29 PERFORMANCE Server request: 0.000113s
117+
2020-08-16 17:51:29 PERFORMANCE Server request: 0.000458s
118+
2020-08-16 17:51:29 PERFORMANCE Server request: 0.000006s
119+
2020-08-16 17:51:29 PERFORMANCE Server request: 0.000189s
120+
2020-08-16 17:51:29 PERFORMANCE Server request: 0.000231s
121+
2020-08-16 17:51:29 PERFORMANCE Server request: 0.000581s
122+
2020-08-16 17:51:30 PERFORMANCE Module tracker updated: 0.000036s
123+
2020-08-16 17:51:30 INFO Repopulating the environment...
124+
2020-08-16 17:51:30 ENVIRONMENT Updating is from empty stub result Environment
125+
2020-08-16 17:51:30 ENVIRONMENT Updating Alias Environment
126+
2020-08-16 17:51:30 ENVIRONMENT Updating Edges Environment
127+
2020-08-16 17:51:30 ENVIRONMENT Updating Class metadata Environment
128+
2020-08-16 17:51:30 ENVIRONMENT Updating parse annotation Environment
129+
2020-08-16 17:51:30 ENVIRONMENT Updating metaclasses Environment
130+
2020-08-16 17:51:30 ENVIRONMENT Updating attributes Environment
131+
2020-08-16 17:51:30 ENVIRONMENT Updating Global Environment
132+
2020-08-16 17:51:30 ENVIRONMENT Updating Global Locations Environment
133+
2020-08-16 17:51:30 INFO Checking 5 functions...
134+
2020-08-16 17:51:30 PERFORMANCE Check_TypeCheck: 0.026769s
135+
2020-08-16 17:51:30 MEMORY Shared memory size (size: 10)
136+
2020-08-16 17:51:30 INFO Number of new errors = 10
137+
2020-08-16 17:51:30 PERFORMANCE Incremental check: 0.108115s
138+
2020-08-16 17:51:30 PERFORMANCE Server request: 0.108671s
139+
2020-08-16 17:51:30 PERFORMANCE Server request: 0.108750s
140+
2020-08-16 17:51:30 PERFORMANCE Server request: 0.000002s
141+
2020-08-16 17:51:30 PERFORMANCE Server request: 0.000051s
142+
2020-08-16 17:51:30 PERFORMANCE Server request: 0.000020s
143+
2020-08-16 17:51:30 PERFORMANCE Server request: 0.000004s
144+
2020-08-16 17:51:30 PERFORMANCE Server request: 0.000017s
145+
2020-08-16 17:51:30 PERFORMANCE Server request: 0.000002s
146+
2020-08-16 17:51:30 PERFORMANCE Server request: 0.000055s
147+
2020-08-16 17:51:31 PERFORMANCE Server request: 0.000014s

docs/source/conf.py

+14-10
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,38 @@
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
1212
#
1313
import sys
14+
1415
sys.path.append("../../")
1516
import recnn
1617
import sphinx_rtd_theme
1718

18-
autodoc_mock_imports = ['torch', 'tqdm']
19+
autodoc_mock_imports = ["torch", "tqdm"]
1920

2021
# sys.path.insert(0, os.path.abspath('.'))
2122

2223

2324
# -- Project information -----------------------------------------------------
2425

25-
project = 'recnn'
26-
copyright = '2019, Mike Watts'
27-
author = 'Mike Watts'
26+
project = "recnn"
27+
copyright = "2019, Mike Watts"
28+
author = "Mike Watts"
2829

2930
# The full version, including alpha/beta/rc tags
30-
release = '0.1'
31+
release = "0.1"
3132

3233

3334
# -- General configuration ---------------------------------------------------
3435

3536
# Add any Sphinx extension module names here, as strings. They can be
3637
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3738
# ones.
38-
extensions = ['sphinx.ext.autodoc', 'sphinx_rtd_theme',]
39+
extensions = [
40+
"sphinx.ext.autodoc",
41+
"sphinx_rtd_theme",
42+
]
3943

4044
# Add any paths that contain templates here, relative to this directory.
41-
templates_path = ['_templates']
45+
templates_path = ["_templates"]
4246

4347
# List of patterns, relative to source directory, that match files and
4448
# directories to ignore when looking for source files.
@@ -51,10 +55,10 @@
5155
# The theme to use for HTML and HTML Help pages. See the documentation for
5256
# a list of builtin themes.
5357
#
54-
html_theme = 'sphinx_rtd_theme'
55-
master_doc = 'index'
58+
html_theme = "sphinx_rtd_theme"
59+
master_doc = "index"
5660

5761
# Add any paths that contain custom static files (such as style sheets) here,
5862
# relative to this directory. They are copied after the builtin static files,
5963
# so a file named "default.css" will overwrite the builtin "default.css".
60-
html_static_path = ['_static']
64+
html_static_path = ["_static"]

0 commit comments

Comments
 (0)