From 79d1c3e14b6030418517c7b6050486f8aa26dd21 Mon Sep 17 00:00:00 2001 From: Simon Jakobi Date: Wed, 14 Jan 2015 21:23:38 +0100 Subject: [PATCH] README: Some advice for contributors Closes https://github.com/exercism/xpython/issues/150 --- README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/README.md b/README.md index b19ac943400..e87019fa2f5 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,48 @@ Exercism exercises in Python Please see the [contributing guide](https://github.com/exercism/x-api/blob/master/CONTRIBUTING.md#the-exercise-data) +## Working on the Exercises + +We welcome both improvements to the existing exercises and new exercises. +A pool of exercise ideas can be found in the [x-common repo](https://github.com/exercism/x-common). + +All exercises must be compatible with Python versions 2.7, 3.3 and 3.4. +Therefore please test your changes at least with Python2.7 and Python3.4. + +To test a single exercise, say crypto-square, run: +``` +python2.7 test/check_exercises.py crypto-square +``` +and +``` +python3.4 test/check_exercises.py crypto-square +``` + +To run the tests for all exercises type: +``` +python test/check_exercises.py +``` + +## Code Style + +The Python code in this repo is meant to largely obey the [PEP8 style guide](https://www.python.org/dev/peps/pep-0008/) (not all code does though). +Try the [flake8](http://flake8.readthedocs.org/en/latest/) tool if you feel unsure about questions of style. + +## Pull Requests + +We :heart: pull requests! +We even :sparkling_heart: them if they contain well written commit messages! + +Please write the first line of your commit message in the following style: + +```exercise-name: Changes some things``` + +If there are more details to add, put those into the body of the commit message. + +If you're interested, Tim Pope even has an [entire blog post](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) on good commit messages. + +If you're new to Git take a look at [this short guide](http://help.exercism.io/git-workflow.html). + ## License The MIT License (MIT)