-
Notifications
You must be signed in to change notification settings - Fork 3
For Developers
To contribute to this project, please reach out to pcreighton429@gmail.com.
To ensure that our Python code stays clean, we are using Flake8 to enforce our style guide, which is mostly based off pep8. The only modification we have made to Flake8 is increasing the character line limit to 120.
Settings in the .vscode
directory will be automatically applied, which selects Flake8 as the linter and sets a vertical ruler of 120 for Python files.
The command run by the Flake8 Python Linter workflow (additionally excluding the .venv
directory) is:
flake8 . --count --show-source --statistics --max-line-length=120 --extend-exclude=.venv/
- If
Course
fields are modified (added, renamed, deleted), the database will need to be updated: runpython manage.py makemigrations
, thenpython manage.py migrate
- If the field representations are changed without modifying the fields themselves (eg. changed
professors_info
field from dictionary to list), runpython manage.py updatecourseobjects
to refresh all the fields of allCourse
objects currently stored in the database - If migrations need to be made to the Course model,
coursetracker/migrations/load_courses.py
will need to be manually updated to depend on the latest migration
- If the field representations are changed without modifying the fields themselves (eg. changed
If the submodule directories are empty, try initializing the submodules
git submodule update --init --recursive
To fetch the latest changes from the submodules' repositories, use
git submodule update --recursive --remote
If there has been a new commit to those repositories, update this repository by committing the change
For more information about submodules, see its documentation page