-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.yml
323 lines (305 loc) · 8.08 KB
/
demo.yml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
# The configurations that used for the recording, feel free to edit them
config:
# Specify a command to be executed
# like `/bin/bash -l`, `ls`, or any other commands
# the default is bash for Linux
# or powershell.exe for Windows
command: bash -l
# Specify the current working directory path
# the default is the current working directory path
cwd: /home/marco/demo-nbqa
# Export additional ENV variables
env:
recording: true
# Explicitly set the number of columns
# or use `auto` to take the current
# number of columns of your shell
cols: 127
# Explicitly set the number of rows
# or use `auto` to take the current
# number of rows of your shell
rows: 24
# Amount of times to repeat GIF
# If value is -1, play once
# If value is 0, loop indefinitely
# If value is a positive number, loop n times
repeat: 0
# Quality
# 1 - 100
quality: 100
# Delay between frames in ms
# If the value is `auto` use the actual recording delays
frameDelay: auto
# Maximum delay between frames in ms
# Ignored if the `frameDelay` isn't set to `auto`
# Set to `auto` to prevent limiting the max idle time
maxIdleTime: 2000
# The surrounding frame box
# The `type` can be null, window, floating, or solid`
# To hide the title use the value null
# Don't forget to add a backgroundColor style with a null as type
frameBox:
type: floating
title: nbQA demo
style:
border: 0px black solid
# boxShadow: none
# margin: 0px
# Add a watermark image to the rendered gif
# You need to specify an absolute path for
# the image on your machine or a URL, and you can also
# add your own CSS styles
watermark:
imagePath: null
style:
position: absolute
right: 15px
bottom: 15px
width: 100px
opacity: 0.9
# Cursor style can be one of
# `block`, `underline`, or `bar`
cursorStyle: block
# Font family
# You can use any font that is installed on your machine
# in CSS-like syntax
fontFamily: "Monaco, Lucida Console, Ubuntu Mono, Monospace"
# The size of the font
fontSize: 12
# The height of lines
lineHeight: 1
# The spacing between letters
letterSpacing: 0
# Theme
theme:
background: "transparent"
foreground: "#afafaf"
cursor: "#c7c7c7"
black: "#232628"
red: "#fc4384"
green: "#b3e33b"
yellow: "#ffa727"
blue: "#75dff2"
magenta: "#ae89fe"
cyan: "#708387"
white: "#d5d5d0"
brightBlack: "#626566"
brightRed: "#ff7fac"
brightGreen: "#c8ed71"
brightYellow: "#ebdf86"
brightBlue: "#75dff2"
brightMagenta: "#ae89fe"
brightCyan: "#b1c6ca"
brightWhite: "#f9f9f4"
# Records, feel free to edit them
records:
- delay: 8
content: "$ "
- delay: 100
content: 'n'
- delay: 99
content: b
- delay: 60
content: q
- delay: 134
content: a
- delay: 156
content: ' '
- delay: 159
content: i
- delay: 131
content: s
- delay: 94
content: o
- delay: 130
content: r
- delay: 160
content: t
- delay: 106
content: ' '
- delay: 100
content: 'n'
- delay: 96
content: o
- delay: 44
content: t
- delay: 75
content: e
- delay: 181
content: b
- delay: 84
content: o
- delay: 110
content: o
- delay: 131
content: k
- delay: 100
content: .
- delay: 100
content: i
- delay: 130
content: p
- delay: 83
content: 'y'
- delay: 176
content: 'n'
- delay: 121
content: b
- delay: 119
content: ' '
- delay: 141
content: '-'
- delay: 184
content: '-'
- delay: 100
content: 'n'
- delay: 82
content: b
- delay: 64
content: q
- delay: 109
content: a
- delay: 120
content: '-'
- delay: 162
content: d
- delay: 122
content: i
- delay: 100
content: f
- delay: 101
content: f
- delay: 139
content: "\r\n"
- delay: 463
content: "\e[1mCell 1\e[0m\r\n------\r\n--- notebook.ipynb\r\n+++ notebook.ipynb\r\n@@ -1,2 +1,2 @@\r\n\e[32m+import os\r\n\e[0m import random\r\n\e[31m-import os\r\n\e[0m\r\nFixing /home/marco/demo-nbqa/notebook.ipynb\r\nTo apply these changes use `--nbqa-mutate` instead of `--nbqa-diff`\r\n"
- delay: 39
content: "$ "
- delay: 888
content: nbqa isort notebook.ipynb --nbqa-diff
- delay: 500
content: "\b\b\b\b"
- delay: 164
content: "\b\b\b\b\b"
- delay: 360
content: "\b\b\b\b\b\b\b\b"
- delay: 359
content: "\b\b\b\b\b\b\b\b\b"
- delay: 718
content: "\b\b\b\b\b\b\e[6P"
- delay: 453
content: "\e[1@p"
- delay: 86
content: "\e[1@y"
- delay: 205
content: "\e[1@u"
- delay: 65
content: "\e[1@p"
- delay: 154
content: "\e[1@g"
- delay: 140
content: "\e[1@r"
- delay: 90
content: "\e[1@a"
- delay: 80
content: "\e[1@d"
- delay: 161
content: "\e[1@e"
- delay: 113
content: "\e[1@ "
- delay: 155
content: "\r\n"
- delay: 329
content: "\e[1mCell 3\e[0m\r\n------\r\n--- notebook.ipynb\r\n+++ notebook.ipynb\r\n@@ -1 +1 @@\r\n\e[31m-set(x for x in y)\r\n\e[0m\e[32m+{x for x in y}\r\n\e[0m\r\nRewriting notebook.ipynb\r\nTo apply these changes use `--nbqa-mutate` instead of `--nbqa-diff`\r\n"
- delay: 38
content: "$ "
- delay: 669
content: nbqa pyupgrade notebook.ipynb --nbqa-diff
- delay: 1400
content: "\b\b\b\b\e[K"
- delay: 325
content: "\b\b\b\b\b\e[K"
- delay: 383
content: "\b\e[K"
- delay: 161
content: "\b\e[K"
- delay: 612
content: "\b\b\b\b\b\b"
- delay: 289
content: "\b\b\b\b\b\b\b\b\b"
- delay: 1191
content: "\b\b\b\b\b\b\b\b\b\b\e[10P"
- delay: 320
content: "\e[1@f"
- delay: 96
content: "\e[1@l"
- delay: 104
content: "\e[1@a"
- delay: 100
content: "\e[1@k"
- delay: 124
content: "\e[1@e"
- delay: 170
content: "\e[1@8"
- delay: 145
content: "\e[1@ "
- delay: 95
content: "\r\n"
- delay: 396
content: "notebook.ipynb:cell_1:1:1: F401 'random' imported but unused\r\nnotebook.ipynb:cell_1:2:1: F401 'os' imported but unused\r\nnotebook.ipynb:cell_2:1:26: F821 undefined name 'foo'\r\nnotebook.ipynb:cell_2:1:35: F821 undefined name 'bar'\r\nnotebook.ipynb:cell_3:1:16: F821 undefined name 'y'\r\n"
- delay: 39
content: "$ "
- delay: 807
content: 'nbqa flake8 notebook.ipynb '
- delay: 745
content: "\b\b\b\b\b\b"
- delay: 296
content: "\b\b\b\b\b\b\b\b\b"
- delay: 721
content: "\b\b\b\b\b\b\b\e[7P"
- delay: 614
content: "\e[1@m"
- delay: 222
content: "\e[1@y"
- delay: 133
content: "\e[1@p"
- delay: 80
content: "\e[1@y"
- delay: 101
content: "\e[1@ "
- delay: 223
content: "\r\n"
- delay: 433
content: "notebook.ipynb:cell_2:1: error: Name 'foo' is not defined\r\nnotebook.ipynb:cell_2:1: error: Name 'bar' is not defined\r\nnotebook.ipynb:cell_3:1: error: Name 'y' is not defined\r\nFound 3 errors in 1 file (checked 1 source file)\r\n"
- delay: 37
content: "$ "
- delay: 753
content: 'nbqa mypy notebook.ipynb '
- delay: 486
content: "\b\b\b\b\b\b"
- delay: 266
content: "\b\b\b\b\b\b\b\b\b"
- delay: 716
content: "\b\b\b\b\b\e[5P"
- delay: 405
content: "\e[1@p"
- delay: 86
content: "\e[1@y"
- delay: 238
content: "\e[1@l"
- delay: 85
content: "\e[1@i"
- delay: 30
content: "\e[C\e[1@n\b"
- delay: 104
content: "\e[1@t"
- delay: 122
content: "\e[1@ "
- delay: 74
content: "\r\n"
- delay: 715
content: "************* Module notebook\r\nnotebook.ipynb:cell_1:0:0: C0114: Missing module docstring (missing-module-docstring)\r\nnotebook.ipynb:cell_2:1:25: E0602: Undefined variable 'foo' (undefined-variable)\r\nnotebook.ipynb:cell_2:1:34: E0602: Undefined variable 'bar' (undefined-variable)\r\nnotebook.ipynb:cell_3:1:15: E0602: Undefined variable 'y' (undefined-variable)\r\nnotebook.ipynb:cell_1:1:0: W0611: Unused import random (unused-import)\r\nnotebook.ipynb:cell_1:2:0: W0611: Unused import os (unused-import)\r\n\r\n-------------------------------------\r\nYour code has been rated at -35.00/10\r\n\r\n"
- delay: 37
content: "$ "
- delay: 1254
content: "logout\r\n"