Skip to content

Commit 713bfd4

Browse files
authored
Add pre-commit hooks (#102)
1 parent 377e1b1 commit 713bfd4

File tree

13 files changed

+121
-25
lines changed

13 files changed

+121
-25
lines changed

.codespellignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cancelled
2+
copyable
3+
pullrequest
4+
snd
5+
statics

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ builtin = clear,rare,en-GB_to_en-US,names,informal,code
33
check-hidden =
44
skip = ./.git,./build/*,./stagedir/*,./docs/html/*,./docs/latex/*,*.log,.*.swp,*~,*.bak,Makefile
55
quiet-level = 2
6-
# ignore-words = .ignore-words
6+
ignore-words = .codespellignore

.devcontainer/devcontainer.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
3-
// README at: https://github.com/devcontainers/templates/tree/main/src/cpp
2+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
3+
// README at: https://github.com/devcontainers/templates/tree/main/src/cpp
44

5-
{
6-
"name": "Beman Project Generic Devcontainer",
7-
"build": {
8-
"dockerfile": "Dockerfile"
9-
},
10-
"postCreateCommand": "bash .devcontainer/postcreate.sh",
11-
"customizations": {
12-
"vscode": {
13-
"extensions": [
14-
"ms-vscode.cpptools",
15-
"ms-vscode.cmake-tools"
16-
]
17-
}
18-
}
19-
}
5+
{
6+
"name": "Beman Project Generic Devcontainer",
7+
"build": {
8+
"dockerfile": "Dockerfile"
9+
},
10+
"postCreateCommand": "bash .devcontainer/postcreate.sh",
11+
"customizations": {
12+
"vscode": {
13+
"extensions": [
14+
"ms-vscode.cpptools",
15+
"ms-vscode.cmake-tools"
16+
]
17+
}
18+
}
19+
}

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
# Codeowners for reviews on PRs
33

44
* @dietmarkuehl @camio @neatudarius
5-

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ CMakeCache.txt
4545
CMakeFiles/
4646

4747
docs/html
48-
docs/latex
48+
docs/latex

.markdownlint.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md033.md
2+
# Disable inline html linter is needed for <details> <summary>
3+
MD033: false
4+
5+
# MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md013.md
6+
# Conforms to .clang-format ColumnLimit
7+
# Update the comment in .clang-format if we no-longer tie these two column limits.
8+
MD013:
9+
line_length: 119

.pre-commit-config.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v5.0.0
6+
hooks:
7+
# TODO: - id: trailing-whitespace
8+
# TODO: - id: end-of-file-fixer
9+
# FIXME: - id: check-yaml
10+
- id: check-added-large-files
11+
12+
# TODO: Clang-format for C++
13+
# This brings in a portable version of clang-format.
14+
# See also: https://github.com/ssciwr/clang-format-wheel
15+
# - repo: https://github.com/pre-commit/mirrors-clang-format
16+
# rev: v19.1.4
17+
# hooks:
18+
# - id: clang-format
19+
# types_or: [c++, c, json]
20+
21+
# TODO: CMake linting and formatting
22+
# - repo: https://github.com/BlankSpruce/gersemi
23+
# rev: 0.17.1
24+
# hooks:
25+
# - id: gersemi
26+
# name: CMake linting
27+
28+
# TODO: Markdown linting
29+
# Config file: .markdownlint.yaml
30+
# - repo: https://github.com/igorshubovych/markdownlint-cli
31+
# rev: v0.43.0
32+
# hooks:
33+
# - id: markdownlint
34+
35+
- repo: https://github.com/codespell-project/codespell
36+
rev: v2.3.0
37+
hooks:
38+
- id: codespell
39+
files: ^.*\.(cmake|cpp|hpp|txt|md|json|in|yaml|yml)$
40+
args: ["--ignore-words", ".codespellignore" ]

include/beman/execution26/detail/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* There are a few ingredients to using `std::execution`:
2323
*
24-
* - Sender algoritms to composes work into an asynchronous workflow.
24+
* - Sender algorithms to composes work into an asynchronous workflow.
2525
* - Something holding and starting senders like `sync_wait()`
2626
* or `counting_scope`.
2727
* - A coroutine binding like `task` to make sender composition

include/beman/execution26/detail/completion_signatures_for.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace beman::execution26::detail {
2121
struct no_completion_signatures_defined_in_sender {};
2222

2323
/*!
24-
* \brief Primary template declaration for the customisation of sender completion signatures.
24+
* \brief Primary template declaration for the customization of sender completion signatures.
2525
* \headerfile beman/execution26/execution.hpp <beman/execution26/execution.hpp>
2626
* \internal
2727
*/

include/beman/execution26/detail/forwarding_query.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace beman::execution26 {
3939
*/
4040
using forwarding_query_t = beman::execution26::detail::forwarding_query_t;
4141
/*!
42-
* \brief The customizatoin point object to determine whether querys should be forwarded
42+
* \brief The customizatoin point object to determine whether queries should be forwarded
4343
* \headerfile beman/execution26/execution.hpp <beman/execution26/execution.hpp>
4444
*
4545
* \details

0 commit comments

Comments
 (0)