Skip to content

Commit

Permalink
maint: Correctly exclude json files in clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
mathbunnyru committed Jan 15, 2025
1 parent 630b62f commit 3495891
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repos:
hooks:
- id: clang-format
args: [--style=file]
exclude: ".json"
exclude_types: [json]
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
Expand Down
2 changes: 2 additions & 0 deletions libmamba/include/mamba/util/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <nlohmann/json.hpp>

NLOHMANN_JSON_NAMESPACE_BEGIN

template <typename T>
struct adl_serializer<std::optional<T>>
{
Expand Down Expand Up @@ -38,6 +39,7 @@ struct adl_serializer<std::optional<T>>
}
}
};

NLOHMANN_JSON_NAMESPACE_END

namespace mamba::util
Expand Down

0 comments on commit 3495891

Please sign in to comment.