Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
RefinedC
Commits
993943a7
Commit
993943a7
authored
Mar 01, 2021
by
Michael Sammler
Browse files
destructive_gen_data for python 3.5
parent
33fc2ab4
Pipeline
#42745
passed with stage
in 28 minutes and 54 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
destructive_gen_data.py
View file @
993943a7
...
...
@@ -117,7 +117,7 @@ def parse_file(f):
def
compute_annots
(
FILES
,
global_rules
):
total
=
{}
o
=
subprocess
.
check_output
([
"tokei"
,
"--output=json"
,
"--files"
]
+
FILES
)
o
=
subprocess
.
check_output
([
"tokei"
,
"--output=json"
,
"--files"
]
+
FILES
)
.
decode
(
"utf8"
)
# print(o)
inner
=
json
.
loads
(
o
)
if
"CHeader"
not
in
inner
:
...
...
@@ -162,7 +162,7 @@ def compute_annots(FILES, global_rules):
shutil
.
copyfile
(
f
,
tmpname
)
with
open
(
f
,
"a"
)
as
fd
:
fd
.
write
(
"//@rc::import enable_debug from refinedc.typing.automation
\n
"
)
fd
.
write
(
f
"//@rc::inlined Definition marker_
{
random
.
randint
(
0
,
1000
)
}
:= tt.
\n
"
)
fd
.
write
(
"//@rc::inlined Definition marker_{
} := tt.
\n
"
.
format
(
random
.
randint
(
0
,
1000
)
)
)
subprocess
.
check_output
([
"dune"
,
"exec"
,
"--"
,
"refinedc"
,
"check"
,
"--no-build"
,
f
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment