Skip to content
Open
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
9 changes: 9 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
BasedOnStyle: Google
ColumnLimit: 100
IncludeCategories:
- Regex: .h>
Priority: 1
- Regex: <[^.]*>
Priority: 2
- Regex: .hpp>
Priority: 3
- Regex: .h"
Priority: 4
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ repos:
rev: v1.3.4
hooks:
- id: clang-format
- id: cpplint
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- repo: https://github.com/pycqa/isort
rev: "5.9.3"
hooks:
Expand All @@ -21,7 +26,7 @@ repos:
- id: pretty-format-json
- id: trailing-whitespace
- repo: https://github.com/pycqa/flake8
rev: "3.9.2"
rev: "4.0.1"
hooks:
- id: flake8
additional_dependencies:
Expand Down
3 changes: 3 additions & 0 deletions CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
linelength=100
filter=-build/c++11
filter=-legal/copyright