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,
blackwill be used to format the code -
After that
flake8will be used to test the code style -
If
blacksays failed then it means that black had to make changes to the code to format it correctly. -
If
blackfails andflake8passes, then just commit again, it should work. -
Normally
blackshould just ensureflake8never fails. -
Both
blackandflakeonly run on the code that has been changed in the commit
- Run
makemigrationsmigrateandrunserverwithmanage.py - For celery, run
celery -A evalmgr worker -l info
-
In the
settings.pyuncomment 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