-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4f428b8
Showing
38 changed files
with
1,901 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.gradle] | ||
indent_style = tab | ||
indent_size = 2 | ||
|
||
[*.py] | ||
indent_style = space | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
assemble: | ||
name: Assemble | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Git repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: 17 | ||
cache: "gradle" | ||
- name: Validate Gradle wrapper | ||
uses: gradle/actions/wrapper-validation@v3 | ||
- name: Assemble project | ||
run: ./gradlew assemble | ||
style: | ||
name: Check formatting | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Git repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: 17 | ||
cache: "gradle" | ||
- name: Validate Gradle wrapper | ||
uses: gradle/actions/wrapper-validation@v3 | ||
- name: Check formatting | ||
run: ./gradlew spotlessCheck | ||
style-python: | ||
name: Check Python formatting | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Git repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "pip" | ||
- name: Install Python dependencies | ||
run: pip install black | ||
- name: Check formatting | ||
run: black --check . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
# Created by https://www.toptal.com/developers/gitignore/api/java,linux,macos,gradle,windows,visualstudiocode | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=java,linux,macos,gradle,windows,visualstudiocode | ||
|
||
### Java ### | ||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
replay_pid* | ||
|
||
### Linux ### | ||
*~ | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* | ||
|
||
# .nfs files are created when an open file is removed but is still being accessed | ||
.nfs* | ||
|
||
### macOS ### | ||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### macOS Patch ### | ||
# iCloud generated files | ||
*.icloud | ||
|
||
### VisualStudioCode ### | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
!.vscode/*.code-snippets | ||
|
||
# Local History for Visual Studio Code | ||
.history/ | ||
|
||
# Built Visual Studio Code Extensions | ||
*.vsix | ||
|
||
### VisualStudioCode Patch ### | ||
# Ignore all local history of files | ||
.history | ||
.ionide | ||
|
||
### Windows ### | ||
# Windows thumbnail cache files | ||
Thumbs.db | ||
Thumbs.db:encryptable | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
|
||
# Dump file | ||
*.stackdump | ||
|
||
# Folder config file | ||
[Dd]esktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msix | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
### Gradle ### | ||
.gradle | ||
**/build/ | ||
!src/**/build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
# Avoid ignore Gradle wrappper properties | ||
!gradle-wrapper.properties | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
# Eclipse Gradle plugin generated files | ||
# Eclipse Core | ||
.project | ||
# JDT-specific (Eclipse Java Development Tools) | ||
.classpath | ||
|
||
### Gradle Patch ### | ||
# Java heap dump | ||
*.hprof | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/java,linux,macos,gradle,windows,visualstudiocode | ||
|
||
# Fleet | ||
.fleet | ||
|
||
# Simulation GUI and other tools window save file | ||
*-window.json | ||
|
||
# Simulation data log directory | ||
logs/ | ||
|
||
# Folder that has CTRE Phoenix Sim device config storage | ||
ctre_sim/ | ||
|
||
# Generated code | ||
src/main/java/frc/robot/generated/BuildConstants.java | ||
|
||
# Simulator files | ||
networktables.json | ||
simgui*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"TeamNumber": 581} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{"recommendations": [ | ||
"wpilibsuite.vscode-wpilib", | ||
"editorconfig.editorconfig", | ||
"vscjava.vscode-java-pack", | ||
"richardwillis.vscode-spotless-gradle", | ||
"ms-python.black-formatter" | ||
]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"request": "launch", | ||
"desktop": true, | ||
"name": "WPILib Desktop Debug", | ||
"type": "wpilib" | ||
}, | ||
{ | ||
"request": "launch", | ||
"desktop": false, | ||
"name": "WPILib roboRIO Debug", | ||
"type": "wpilib" | ||
} | ||
], | ||
"version": "0.2.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"[gradle]": {"editor.defaultFormatter": "richardwillis.vscode-spotless-gradle"}, | ||
"java.configuration.updateBuildConfiguration": "automatic", | ||
"java.test.defaultConfig": "WPIlibUnitTests", | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"editor.formatOnType": true | ||
}, | ||
"java.test.config": [{ | ||
"workingDirectory": "${workspaceFolder}/build/jni/release", | ||
"name": "WPIlibUnitTests", | ||
"env": { | ||
"DYLD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release", | ||
"LD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release" | ||
}, | ||
"vmargs": ["-Djava.library.path=${workspaceFolder}/build/jni/release"] | ||
}], | ||
"java.server.launchMode": "Standard", | ||
"files.exclude": { | ||
"**/CVS": true, | ||
"**/*~": true, | ||
"**/.svn": true, | ||
"**/.project": true, | ||
"**/.classpath": true, | ||
"bin/": true, | ||
"**/.settings": true, | ||
"**/.factorypath": true, | ||
"**/.DS_Store": true, | ||
"**/.git": true, | ||
"**/.hg": true | ||
}, | ||
"[java]": {"editor.defaultFormatter": "richardwillis.vscode-spotless-gradle"}, | ||
"[json]": {"editor.defaultFormatter": "richardwillis.vscode-spotless-gradle"}, | ||
"[ignore]": {"editor.defaultFormatter": "richardwillis.vscode-spotless-gradle"} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"currentLanguage": "java", | ||
"enableCppIntellisense": false, | ||
"teamNumber": 581, | ||
"projectYear": "2024" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Team 581's FRC 2024 offseason robot code | ||
|
||
[![CI](https://github.com/team581/2024-offseason-bot/actions/workflows/ci.yml/badge.svg)](https://github.com/team581/2024-offseason-bot/actions/workflows/ci.yml) | ||
|
||
[Team 581](https://github.com/team581)'s robot code for our 2024 offseason robot. |
Oops, something went wrong.