Overview
- 👷♀️ Working Best Practices
- Git + GitHub configuration
- 💻 VSCode configuration
- 💥 Local testing
Working Best Practices
- ⏱️ ~20 min each morning on emails/Slack
- 🚶 Stand up at least 5 min every hour or so
- 🥤 Drink water
- 🔕 Avoid distractions
- ☕ Get some time for Fika
Git + GitHub configuration
- Set up your fork on GitHub
- 💾 Configure your local clone
- 🚀 Work on other people's code
- ♻️ Pull in updates
Git + GitHub configuration
Local clone setup
gh repo clone <username>/<repo>
cd <repo>
Git + GitHub configuration
Do work
git checkout -b <branch>_<new_feature>
git add <file>
git commit -m "feat: Did a thing"
git commit -m "fix: Fixed a thing"
git commit -m "chores: Had to do a thing"
git push -u origin <branch>_<new_feature>
gh pr create --base <branch> --title "<new_feature>" \
--body "This <new_feature> is amazing and here's why..."
Git + GitHub configuration
Do tiny modifications
Git + GitHub configuration
Keep code up to date locally
git status
git pull
git fetch upstream; git merge upstream/<branch>
Git + GitHub configuration
Keep code up to date on GitHub
VSCode configuration
- 👷♀️ Best Practices
- ⚒️ Useful plugins
VSCode configuration
- One main workspace
- One workspace for each repo
VSCode configuration
Plugins
Local testing
- 📃 Running tests locally
- 🐍 Pytest workflow locally
Acknowledgements
#18: Development environments & workflows II Maxime U Garcia ▸ @gau | @maxulysse Karolinska Institutet | Science for Life Laboratory Sweden
{"metaMigratedAt":"2023-06-16T02:56:39.035Z","metaMigratedFrom":"YAML","title":"nf-core/bytesize - Development environments & workflows II","breaks":true,"contributors":"[{\"id\":\"fb193497-1111-470c-a594-827d34b6f673\",\"add\":134089,\"del\":140082}]"}