Project Creation and `git` Help - team1868/1868wiki GitHub Wiki
This assumes you’ve followed the environment setup guide
- Use WPI lib project template or the robot builder tool to structure your project
- Add vendor dependencies (every season these should be updated so do not copy them from old projects)
- Add clang format file in the project's root directory
- Add pre-commit configuration file in the project's root directory
- Install pre-commit using
pre-commit install - (optional) Add workflows from previous projects .github directory for extra checks and repository configurations
git clone <repo url>cd <repo directory>pre-commit install
git checkout <branch name>git pull
git fetch origingit checkout <branch name>git merge origin/main-
:wq-- to resolve the message that pops up
- VScode
- Integrated developer environment (IDE) that integrates with WPILIB
- Clang format
- We use clang-format to auto format our code using a custom clang-format file. With the
xaver.clang-formatvscode plugin installed, useshift + option + fon mac andalt + shift + fon windows to auto-format the current file.
- We use clang-format to auto format our code using a custom clang-format file. With the
- Pre-commit
- Pre-commit forces your files to be formatted before committing them
- Photon vision
- 3’rd party vision library
- CTRE libraries (Phoenix)
- REV libraries