Final Year Project for automated assignment evaluation
- Clone the repo
- Create your branch and move to it
git checkout -b branch_name
- Activate your venv using
source /path/to/venv/bin/activate
pip install -r requirements.txt
- Intall redis
sudo apt-get install redis-server
- First time on cloning, run
pre-commit install
-
When you commit,
black
will be used to format the code -
After that
flake8
will be used to test the code style -
If
black
says failed then it means that black had to make changes to the code to format it correctly. -
If
black
fails andflake8
passes, then just commit again, it should work. -
Normally
black
should just ensureflake8
never fails. -
Both
black
andflake
only run on the code that has been changed in the commit
- Run
makemigrations
migrate
andrunserver
withmanage.py
- For celery, run
celery -A evalmgr worker -l info
-
In the
settings.py
uncomment the redis conf lines -
Run
docker-compose up
-
May have issues with the db read/write.
-
While creating the pull request, add others as reviewers and reference it in the issue it is fixing