Skip to content

Commit 65b9c8d

Browse files
authored
Add script to generate Rust exercises
The idea is to ease contribution by setting up a project template and configuring tests from the canonical data, if any. Would-be contributors can simply run this script, configure the tests for each property, and implement an example in order to add a new exercise. This script will always prettify config.json when it's run, as an inescapable part of its read-edit-write cycle. Therefore, I'm adding its edits here, so that users of the script aren't stuck with config.json edits which are irrelevant to their PR.
1 parent 415016c commit 65b9c8d

File tree

3 files changed

+596
-10
lines changed

3 files changed

+596
-10
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Please see the documentation about [adding new exercises](https://github.com/exe
6666

6767
Note that:
6868

69+
- The simplest way to generate a project template is to run `bin/init_exercise.py`. You'll need a Python installation >= 3.5 in order to run this script, but it will automate most of the following points for you.
70+
6971
- Each exercise must stand on its own. Do not reference files outside the exercise directory. They will not be included when the user fetches the exercise.
7072

7173
- Exercises must conform to the Exercism-wide standards described in [the documentation](https://github.com/exercism/docs/tree/master/language-tracks/exercises).

0 commit comments

Comments
 (0)