Skip to content

Commit

Permalink
Add name to recently merged in modules. Don't use system's docopt. Bu…
Browse files Browse the repository at this point in the history
…mp pre-commit hooks.
  • Loading branch information
kordejong committed Oct 10, 2024
1 parent 6665eb9 commit c58c70b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: |
# Skip the files that must be kept as they are
(?x)^(
environment/cmake/.*\.patch|
environment/cmake/UseLATEX\.cmake|
Expand All @@ -11,18 +10,18 @@ exclude: |
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
# - id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.11.2
hooks:
- id: mypy
# args: [--verbose]
Expand All @@ -46,7 +45,7 @@ repos:
.*\.py.in|
)$
- repo: https://github.com/markdownlint/markdownlint
rev: v0.13.0
rev: v0.12.0
hooks:
- id: markdownlint
- repo: https://github.com/codespell-project/codespell
Expand All @@ -56,7 +55,7 @@ repos:
additional_dependencies:
- tomli
- repo: https://github.com/crate-ci/typos
rev: v1.23.6
rev: v1.26.0
hooks:
- id: typos
args: [] # Relevant: don't update files, just report
Expand Down
3 changes: 2 additions & 1 deletion environment/cmake/LueConfiguration.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ if(LUE_DOCOPT_REQUIRED)
GIT_REPOSITORY https://github.com/docopt/docopt.cpp.git
GIT_TAG 42ebcec9dc2c99a1b3a4542787572045763ad196 # 0.6.3
SYSTEM
FIND_PACKAGE_ARGS
# Using the system version is inconvenient since headers are then in a docopt/ subdirectory...
# FIND_PACKAGE_ARGS
)
FetchContent_MakeAvailable(docopt)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ namespace lue {
static_assert(std::is_integral_v<InputElement>);
static_assert(std::is_same_v<InputElement, OutputElement_>);

static constexpr char const* name{"modulus"};

using OutputElement = OutputElement_;

constexpr auto operator()(
InputElement const& input_element1, InputElement const& input_element2) const noexcept -> OutputElement
InputElement const& input_element1,
InputElement const& input_element2) const noexcept -> OutputElement
{
return input_element1 % input_element2;
}
Expand Down

0 comments on commit c58c70b

Please sign in to comment.