[PR #252] [CLOSED] Add pre-commit configuration for code quality #316

Closed
opened 2026-10-26 21:16:10 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/DeepGEMM/pull/252
Author: @yurekami
Created: 12/25/2025
Status: ❌ Closed

Base: main ← Head: add-pre-commit-config


📝 Commits (1)

  • 81225dd Add pre-commit configuration for code quality

📊 Changes

2 files changed (+105 additions, -0 deletions)

View changed files

➕ .pre-commit-config.yaml (+54 -0)
➕ ruff.toml (+51 -0)

📄 Description

Summary

  • Add .pre-commit-config.yaml with hooks for automated code quality checks
  • Add ruff.toml with Python linting and formatting configuration

Pre-commit Hooks Included:

  • General: YAML/TOML validation, trailing whitespace fixes, line ending normalization, large file prevention, merge conflict detection
  • Python: Ruff for linting and formatting (replaces black, isort, flake8)
  • C++/CUDA: clang-format for consistent code style
  • Shell: shellcheck for script quality

Usage

pip install pre-commit
pre-commit install
# Run manually on all files
pre-commit run --all-files

Test plan

  • Validate YAML syntax
  • Test pre-commit run --all-files on a fresh clone
  • Verify hooks work on new commits

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/deepseek-ai/DeepGEMM/pull/252 **Author:** [@yurekami](https://github.com/yurekami) **Created:** 12/25/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `add-pre-commit-config` --- ### 📝 Commits (1) - [`81225dd`](https://github.com/deepseek-ai/DeepGEMM/commit/81225dd2c0dc1a08cfd25efeab82dd5980503c5a) Add pre-commit configuration for code quality ### 📊 Changes **2 files changed** (+105 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.pre-commit-config.yaml` (+54 -0) ➕ `ruff.toml` (+51 -0) </details> ### 📄 Description ## Summary - Add `.pre-commit-config.yaml` with hooks for automated code quality checks - Add `ruff.toml` with Python linting and formatting configuration ### Pre-commit Hooks Included: - **General**: YAML/TOML validation, trailing whitespace fixes, line ending normalization, large file prevention, merge conflict detection - **Python**: Ruff for linting and formatting (replaces black, isort, flake8) - **C++/CUDA**: clang-format for consistent code style - **Shell**: shellcheck for script quality ### Usage ```bash pip install pre-commit pre-commit install # Run manually on all files pre-commit run --all-files ``` ## Test plan - [x] Validate YAML syntax - [ ] Test `pre-commit run --all-files` on a fresh clone - [ ] Verify hooks work on new commits 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 21:16:10 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepGEMM#316
No description provided.