Skip to content

Commit fd3d082

Browse files
revert files
1 parent e877a97 commit fd3d082

File tree

5 files changed

+97
-10
lines changed

5 files changed

+97
-10
lines changed

.clang-format

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
BasedOnStyle: Google
3+
Language: Cpp
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveAssignments: 'true'
6+
AlignConsecutiveDeclarations: 'true'
7+
AlignTrailingComments: 'true'
8+
AllowAllArgumentsOnNextLine: 'false'
9+
AllowAllParametersOfDeclarationOnNextLine: 'false'
10+
AlwaysBreakBeforeMultilineStrings: 'false'
11+
AlwaysBreakTemplateDeclarations: 'Yes'
12+
BinPackArguments: 'false'
13+
BinPackParameters: 'false'
14+
BreakBeforeBraces: Linux
15+
ColumnLimit: '100'
16+
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
17+
FixNamespaceComments: 'true'
18+
IndentAccessModifiers: 'true'
19+
IndentCaseLabels: 'true'
20+
IndentWidth: '2'
21+
NamespaceIndentation: All
22+
PointerAlignment: Left
23+
SpaceAfterCStyleCast: 'true'
24+
SpaceAfterLogicalNot: 'false'
25+
SpaceAfterTemplateKeyword: 'false'
26+
SpaceBeforeAssignmentOperators: 'true'
27+
SpaceBeforeCtorInitializerColon: 'true'
28+
SpaceBeforeInheritanceColon: 'true'
29+
SpaceBeforeParens: ControlStatements
30+
SpacesInParentheses: 'false'
31+
SpacesInSquareBrackets: 'false'
32+
Standard: Cpp11
33+
TabWidth: '2'
34+
UseTab: Never
35+
36+
---
37+
Language: Json
38+
# Use 100 columns for JS.
39+
ColumnLimit: 100
40+
---
41+
Language: ObjC
42+
# Use 100 columns for C#.
43+
ColumnLimit: 100
44+
...

.github/workflows/.cmake-format.py renamed to .cmake-format

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
# If a statement is wrapped to more than one line, than dangle the closing
1818
# parenthesis on its own line.
19-
dangle_parens = True
19+
dangle_parens = True

.github/workflows/.clang-format

-9
This file was deleted.

.github/workflows/pre_commit.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: pre-commit GitHub Action
2+
3+
# Won't run on develop/main directly
4+
on:
5+
workflow_dispatch:
6+
7+
jobs:
8+
pre-commit:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
ref: ${{ github.event.pull_request.head.ref }}
14+
- uses: actions/setup-python@v3
15+
- uses: pre-commit/[email protected]
16+
- uses: EndBug/[email protected]
17+
# Only need to try and commit if the action failed
18+
if: failure()
19+
with:
20+
fetch: false
21+
committer_name: GitHub Actions
22+
committer_email: [email protected]
23+
message: Apply pre-commmit fixes
24+

.pre-commit-config.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
ci:
2+
autofix_commit_msg: |
3+
[pre-commit.ci] auto fixes from pre-commit.com hooks
4+
5+
for more information, see https://pre-commit.ci
6+
autofix_prs: true
7+
autoupdate_branch: ''
8+
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
9+
autoupdate_schedule: weekly
10+
skip: []
11+
submodules: false
12+
13+
repos:
14+
- repo: https://github.com/cheshirekow/cmake-format-precommit
15+
rev: v0.6.13
16+
hooks:
17+
- id: cmake-format
18+
- repo: https://github.com/pre-commit/mirrors-clang-format
19+
rev: v16.0.1
20+
hooks:
21+
- id: clang-format
22+
- repo: https://github.com/pre-commit/pre-commit-hooks
23+
rev: v4.4.0
24+
hooks:
25+
- id: forbid-new-submodules
26+
- id: end-of-file-fixer
27+
- id: check-yaml
28+
args: [--allow-multiple-documents]

0 commit comments

Comments
 (0)