CS 2470 project
- Install poetry: https://python-poetry.org/docs/
- Clone repository: https://github.com/jdstamp/bulkyBERT
- In the repository run
poetry install
This should create a virtual environment and install all the declared dependencies.
Run poetry add <dependency> or poetry remove <dependency> to add or remove a dependency.
To collaborate on a git repository, we need to work with branching. The main branch on the repository is main. This branch is protected for changes other than through pull requests on GitHub. The workflow will be as follows:
- Make sure that your local repository has the latest changes to main:
git switch maingit fetch --prunegit pull
- Create a new branch from main:
git switch -c <new-branch> - Make changes and run the dev dependency "black" with
poetry run black .which will format all python files to be PEP8 compliant. - Stage changed files for commit:
git add <path(s)/to/changed/file(s)> - Commit with a message that explains changes:
git commit -m"<reason for change>" - Push to GitHub:
git push. This command will not work the first time but tell you how to fix it to make it work, copy-paste and push. - Go to GitHub and create pull request to merge into
main. - Assign reviewers to have them notified.
- Wait for reviews, address change requests, and eventually merge.