Skip to content

Commit

Permalink
pre-commit autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Dec 6, 2023
1 parent 1bdf28c commit e65b54d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
11 changes: 2 additions & 9 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Language: Cpp
DerivePointerAlignment: false
PointerAlignment: Left
AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent # closing brace on new line
AlignConsecutiveAssignments: false
AlignEscapedNewlines: DontAlign
AllowShortBlocksOnASingleLine: false
Expand All @@ -13,18 +14,10 @@ AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
PenaltyBreakBeforeFirstCallParameter: 0
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyReturnTypeOnItsOwnLine: 100
PointerBindsToType: true
BreakBeforeBraces: Stroustrup
RemoveSemicolon: true
InsertNewlineAtEOF: true

# closing brace on new line
AlignAfterOpenBracket: BlockIndent

# https://stackoverflow.com/questions/74977150/make-clang-format-break-after-the-usage-of-c-attributes
BreakAfterAttributes: Always

# Do not align consecutive comments that follow a line of code
AlignTrailingComments: false
Expand Down
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: debug-statements
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.10.0
rev: v2.11.0
hooks:
- id: pretty-format-yaml
args: [--preserve-quotes, --autofix, --indent, '2']
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 23.11.0
hooks:
- id: black
args: [--safe, --quiet, --line-length=100]
- repo: https://github.com/humitos/mirrors-autoflake.git
rev: v1.1
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
- id: autoflake
args: [--in-place, --remove-unused-variable, --remove-all-unused-imports]
Expand All @@ -29,7 +29,7 @@ repos:
hooks:
- id: reorder-python-imports
- repo: https://github.com/asottile/pyupgrade
rev: v3.14.0
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py36-plus]
Expand All @@ -43,11 +43,11 @@ repos:
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/tdegeus/cpp_comment_format
rev: v0.2.0
rev: v0.2.1
hooks:
- id: cpp_comment_format
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
rev: v17.0.6
hooks:
- id: clang-format
args: [-i]
Expand Down

0 comments on commit e65b54d

Please sign in to comment.