repobee / repobee-sanitizer

A plugin for sanitizing master repositories before distribution to students
MIT License
2 stars 3 forks source link

Make a syntax module #56

Closed tohanss closed 4 years ago

tohanss commented 4 years ago

Right now we have this in _sanitize.py. We probably want to move this along with _check_syntax to a separate module.

This way we can better document the repobee-sanitizer syntax.

START_BLOCK = "REPOBEE-SANITIZER-BLOCK"
REPLACE_WITH = "REPOBEE-SANITIZER-REPLACE-WITH"
END_BLOCK = "REPOBEE-SANITIZER-END"

SANITIZER_MARKERS = (
    START_BLOCK,
    REPLACE_WITH,
    END_BLOCK,
)