-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove unnecessary comments #88
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
|
@@ -8,25 +6,16 @@ repos: | |
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
|
||
# Clang-format for C++ | ||
# This brings in a portable version of clang-format. | ||
# See also: https://github.com/ssciwr/clang-format-wheel | ||
- repo: https://github.com/pre-commit/mirrors-clang-format | ||
rev: v18.1.8 | ||
hooks: | ||
- id: clang-format | ||
types_or: [c++, c] | ||
|
||
# CMake linting and formatting | ||
- repo: https://github.com/BlankSpruce/gersemi | ||
rev: 0.15.1 | ||
hooks: | ||
- id: gersemi | ||
name: CMake linting | ||
|
||
# Markdown linting | ||
# Config file: .markdownlint.yaml | ||
- repo: https://github.com/igorshubovych/markdownlint-cli | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are multiple CMake linters using different file names for their linting file. This is useful for alleviate confusion when someone brings in another CMake lint config. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can see an instance of this happening here: |
||
rev: v0.42.0 | ||
hooks: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is not useful... This makes clear that pre-commit does not dependent on system's clang-format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean they can certainly search for it. But I don't think this is non-dependency is intuitive.