Skip to content
Snippets Groups Projects
Commit 6fce20d6 authored by tuhe's avatar tuhe
Browse files

Minor fixes for code comment removal

parent 7572308a
No related branches found
No related tags found
No related merge requests found
Pipeline #24380 passed
......@@ -6,7 +6,6 @@
# Local install: sudo pip install -e ./
import setuptools
import pkg_resources
with open("src/snipper/version.py", "r", encoding="utf-8") as fh:
__version__ = fh.read().split(" = ")[1].strip()[1:-1]
......
Metadata-Version: 2.1
Name: codesnipper
Version: 0.1.18.9
Version: 0.1.18.10
Summary: A lightweight framework for censoring student solutions files and extracting code + output
Home-page: https://lab.compute.dtu.dk/tuhe/snipper
Author: Tue Herlau
......@@ -13,6 +13,8 @@ Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pybtex
Requires-Dist: numpy
# Snipper
A lightweight framework for removing code from student solutions.
......
No preview for this file type
......@@ -26,6 +26,12 @@ def censor_code(lines, keep=True):
lines, nB, cut = fix_b(lines, keep=keep)
return lines
def fix_tags(lines):
for k, l in enumerate(lines):
# if l.find(" # !") > 0:
# print(f"{file}:{k}> bad snipper tag, fixing")
lines[k] = l.replace("# !", "#!")
return lines
def censor_file(file, run_files=True, run_out_dirs=None, cut_files=True,
output_solution=False,
......
__version__ = "0.1.18.9"
__version__ = "0.1.18.10"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment