Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Language: Cpp
BasedOnStyle: Microsoft
BasedOnStyle: LLVM

AlwaysBreakTemplateDeclarations: Yes

Expand All @@ -25,6 +25,8 @@ IncludeIsMainSourceRegex: ''
IndentWidth: 4
IndentWrappedFunctionNames: true

ColumnLimit: 120

# About Point
DerivePointerAlignment: false
PointerAlignment: Left
Expand Down
43 changes: 0 additions & 43 deletions .clang-tidy

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Precommit

on:
pull_request:
push:
branches:
- develop

permissions:
contents: read

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: '3.12'
- uses: pre-commit/action@v3.0.1
11 changes: 0 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,6 @@ jobs:
-DENABLE_PEXSI=ON \
-Werror=dev

# Temporarily removed because no one maintains this now.
# And it will break the CI test workflow.

# - uses: pre-commit/action@v3.0.1
# with:
# extra_args:
# --from-ref ${{ github.event.pull_request.base.sha }}
# --to-ref ${{ github.event.pull_request.head.sha }}
# continue-on-error: true
# - uses: pre-commit-ci/lite-action@v1.0.3

- name: Build
run: |
cmake --build build -j8
Expand Down
19 changes: 8 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@ repos:
- id: mixed-line-ending
args: [--fix=lf]
exclude: '(\.bat|\.cmd)$'
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v23.1.3
hooks:
# - id: clang-format
# args: [-i]
- id: clang-tidy
args: [-p=build, --fix-errors]
# - id: oclint
# - id: uncrustify
# - id: cppcheck
# - id: cpplint
# - id: include-what-you-use
- id: clang-format
# - repo: https://github.com/cheshirekow/cmake-format-precommit
# rev: v0.6.13
# hooks:
# - id: cmake-format
# additional_dependencies: [pyyaml]
- repo: local
hooks:
- id: abacus-agent-governance
Expand Down
Loading
Loading