Update readme and pre-commit

This commit is contained in:
Jan Tuomi
2017-11-25 21:56:07 +02:00
parent ec6051d3d6
commit 2b2d635cb0
4 changed files with 1930 additions and 8 deletions
+1919
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -19,6 +19,8 @@
"remark-preset-lint-recommended": "^3.0.1"
},
"remarkConfig": {
"plugins": ["remark-preset-lint-recommended"]
"plugins": [
"remark-preset-lint-recommended"
]
}
}
+1 -6
View File
@@ -76,12 +76,7 @@ pip install -r requirements.production.txt
## Development workflow
When pulling changes from the server, use `rebase` instead of `merge` for a nice and clean linear history.
Example of pulling with rebase:
```
git pull --rebase
```
Do not use `rebase` when pulling or merging changes. Rebasing transforms the commit history and makes it appear more linear. This is a plus e.g. when working with a few people, but in this project traditional merging is recommended for clarity.
When you start working on a feature, create a feature branch for your changes. These feature branches should be prefixed with `feature`.
+7 -1
View File
@@ -1,4 +1,10 @@
set -e
PURPLE='\033[0;35m'
NC='\033[0m' # No Color
printf "${PURPLE}Running pre-commit tests.${NC}\n"
npm test
python manage.py test
python manage.py test --noinput
set +e
printf "${PURPLE}Tests passed.${NC}\n"