mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 20:05:51 +00:00
style: Use pre-commit tool and add simple config (#2029)
I started with really simple pre-commit hooks and will add more on top. Important files: - `.pre-commit-config.yaml` - the config for pre-commit - `.github/workflows/pre-commit.yml` - runs pre-commit hooks in branches and `develop` - `.github/workflows/pre-commit-autoupdate.yml` - autoupdates pre-commit hooks once in a month
This commit is contained in:
@@ -97,7 +97,7 @@ TEST_F(RPCBaseTest, TypeValidator)
|
||||
{"arr", Type<json::array>{}},
|
||||
};
|
||||
|
||||
auto passingInput = json::parse(R"({
|
||||
auto passingInput = json::parse(R"({
|
||||
"uint": 123,
|
||||
"int": 321,
|
||||
"str": "a string",
|
||||
@@ -615,10 +615,10 @@ TEST_F(RPCBaseTest, SubscribeStreamValidator)
|
||||
{
|
||||
auto const spec = RpcSpec{{"streams", CustomValidators::subscribeStreamValidator}};
|
||||
auto passingInput = json::parse(
|
||||
R"({
|
||||
"streams":
|
||||
R"({
|
||||
"streams":
|
||||
[
|
||||
"ledger",
|
||||
"ledger",
|
||||
"transactions_proposed",
|
||||
"validations",
|
||||
"transactions",
|
||||
|
||||
Reference in New Issue
Block a user