mirror of https://github.com/mamba-org/mamba.git
maint: Correctly exclude json files in clang-format (#3749)
This commit is contained in:
parent
630b62fa83
commit
8591bbe4fd
|
@ -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:
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <nlohmann/json.hpp>
|
||||
|
||||
NLOHMANN_JSON_NAMESPACE_BEGIN
|
||||
|
||||
template <typename T>
|
||||
struct adl_serializer<std::optional<T>>
|
||||
{
|
||||
|
@ -38,6 +39,7 @@ struct adl_serializer<std::optional<T>>
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
namespace mamba::util
|
||||
|
|
Loading…
Reference in New Issue