GPULlama3.java
GPULlama3.java copied to clipboard
Set Up Linters and Code Style Checkers
Introduce basic code quality tools for both Java and Python code in the repo. This helps ensure formatting and best practices are followed consistently across contributors.
✅ Tasks
You don’t need to do all of them in one go — even completing just one is helpful!
0️⃣ Java Linter & Formatter
- [ ] Add Checkstyle using the default or Google style in
pom.xmlorbuild.gradle - [ ] Add config file (e.g.,
checkstyle.xml) - [ ] Add GitHub Action to run
mvn checkstyle:checkorgradle check
1️⃣ Java Auto-Formatter
- [ ] Add Spotless (Google Java Format) via Gradle or Maven
- [ ] Add commands like
./gradlew spotlessApplyormvn spotless:apply
2️⃣ Python Formatter (for auxiliary Python scripts)
- [ ] Add Black formatter (
black .) - [ ] Add a GitHub Action to check formatting, e.g.:
name: Python Format Check
on: [push, pull_request]
jobs:
black-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Black
run: pip install black
- name: Check formatting with Black
run: black --check .
3️⃣ .editorconfig
Hey @mikepapadim , would like to contribute on this issue. Thanks!
Hi, was wondering if there was any update on this issue? Thanks.