Skip to content

Commit 185048b

Browse files
committed
Add toml formatter config + run make fmt.
1 parent 1e6286d commit 185048b

9 files changed

+79
-7
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
.PHONY: test
1+
.PHONY: test fmt devshell
22

33
test:
44
docker compose run --rm lorawan-device-profiles --run 'cd test-runner && cargo run'
55

6+
fmt:
7+
docker compose run --rm lorawan-device-profiles --run 'taplo fmt'
8+
9+
devshell:
10+
docker-compose run --rm lorawan-device-profiles

shell.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
pkgs.mkShell {
44
buildInputs = [
55
pkgs.rustup
6+
pkgs.taplo
67
];
78
}

taplo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include = ["vendors/**/*.toml"]
2+
3+
[formatting]
4+
indent_tables = true
5+
indent_entries = true

vendors/rakwireless/devices/rak10702.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,18 @@
2727
# List of supported profiles.
2828
#
2929
# This list refers to one or multiple profiles in the profiles/ directory.
30-
profiles = ["EU868_1_0_2.toml", "RU864_1_0_2.toml", "IN865_1_0_2.toml", "US915_1_0_2.toml", "AU915_1_0_2.toml", "KR920_1_0_2.toml", "AS923_1_1_0_2.toml", "AS923_2_1_0_2.toml", "AS923_3_1_0_2.toml", "AS923_4_1_0_2.toml"]
30+
profiles = [
31+
"EU868_1_0_2.toml",
32+
"RU864_1_0_2.toml",
33+
"IN865_1_0_2.toml",
34+
"US915_1_0_2.toml",
35+
"AU915_1_0_2.toml",
36+
"KR920_1_0_2.toml",
37+
"AS923_1_1_0_2.toml",
38+
"AS923_2_1_0_2.toml",
39+
"AS923_3_1_0_2.toml",
40+
"AS923_4_1_0_2.toml",
41+
]
3142

3243
# Payload codec.
3344
#

vendors/rakwireless/devices/wisblock-api-v2.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,18 @@
2727
# List of supported profiles.
2828
#
2929
# This list refers to one or multiple profiles in the profiles/ directory.
30-
profiles = ["EU868_1_0_2.toml", "RU864_1_0_2.toml", "IN865_1_0_2.toml", "US915_1_0_2.toml", "AU915_1_0_2.toml", "KR920_1_0_2.toml", "AS923_1_1_0_2.toml", "AS923_2_1_0_2.toml", "AS923_3_1_0_2.toml", "AS923_4_1_0_2.toml"]
30+
profiles = [
31+
"EU868_1_0_2.toml",
32+
"RU864_1_0_2.toml",
33+
"IN865_1_0_2.toml",
34+
"US915_1_0_2.toml",
35+
"AU915_1_0_2.toml",
36+
"KR920_1_0_2.toml",
37+
"AS923_1_1_0_2.toml",
38+
"AS923_2_1_0_2.toml",
39+
"AS923_3_1_0_2.toml",
40+
"AS923_4_1_0_2.toml",
41+
]
3142

3243
# Payload codec.
3344
#

vendors/rakwireless/devices/wisblock-kit-1.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,18 @@
2727
# List of supported profiles.
2828
#
2929
# This list refers to one or multiple profiles in the profiles/ directory.
30-
profiles = ["EU868_1_0_2.toml", "RU864_1_0_2.toml", "IN865_1_0_2.toml", "US915_1_0_2.toml", "AU915_1_0_2.toml", "KR920_1_0_2.toml", "AS923_1_1_0_2.toml", "AS923_2_1_0_2.toml", "AS923_3_1_0_2.toml", "AS923_4_1_0_2.toml"]
30+
profiles = [
31+
"EU868_1_0_2.toml",
32+
"RU864_1_0_2.toml",
33+
"IN865_1_0_2.toml",
34+
"US915_1_0_2.toml",
35+
"AU915_1_0_2.toml",
36+
"KR920_1_0_2.toml",
37+
"AS923_1_1_0_2.toml",
38+
"AS923_2_1_0_2.toml",
39+
"AS923_3_1_0_2.toml",
40+
"AS923_4_1_0_2.toml",
41+
]
3142

3243
# Payload codec.
3344
#

vendors/rakwireless/devices/wisblock-kit-2.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,18 @@
2727
# List of supported profiles.
2828
#
2929
# This list refers to one or multiple profiles in the profiles/ directory.
30-
profiles = ["EU868_1_0_2.toml", "RU864_1_0_2.toml", "IN865_1_0_2.toml", "US915_1_0_2.toml", "AU915_1_0_2.toml", "KR920_1_0_2.toml", "AS923_1_1_0_2.toml", "AS923_2_1_0_2.toml", "AS923_3_1_0_2.toml", "AS923_4_1_0_2.toml"]
30+
profiles = [
31+
"EU868_1_0_2.toml",
32+
"RU864_1_0_2.toml",
33+
"IN865_1_0_2.toml",
34+
"US915_1_0_2.toml",
35+
"AU915_1_0_2.toml",
36+
"KR920_1_0_2.toml",
37+
"AS923_1_1_0_2.toml",
38+
"AS923_2_1_0_2.toml",
39+
"AS923_3_1_0_2.toml",
40+
"AS923_4_1_0_2.toml",
41+
]
3142

3243
# Payload codec.
3344
#

vendors/rakwireless/devices/wisblock-kit-4.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,18 @@
2727
# List of supported profiles.
2828
#
2929
# This list refers to one or multiple profiles in the profiles/ directory.
30-
profiles = ["EU868_1_0_2.toml", "RU864_1_0_2.toml", "IN865_1_0_2.toml", "US915_1_0_2.toml", "AU915_1_0_2.toml", "KR920_1_0_2.toml", "AS923_1_1_0_2.toml", "AS923_2_1_0_2.toml", "AS923_3_1_0_2.toml", "AS923_4_1_0_2.toml"]
30+
profiles = [
31+
"EU868_1_0_2.toml",
32+
"RU864_1_0_2.toml",
33+
"IN865_1_0_2.toml",
34+
"US915_1_0_2.toml",
35+
"AU915_1_0_2.toml",
36+
"KR920_1_0_2.toml",
37+
"AS923_1_1_0_2.toml",
38+
"AS923_2_1_0_2.toml",
39+
"AS923_3_1_0_2.toml",
40+
"AS923_4_1_0_2.toml",
41+
]
3142

3243
# Payload codec.
3344
#

vendors/rakwireless/vendor.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@
1616
# List of devices.
1717
#
1818
# This list refers to one or multiple devices in the devices/ directory.
19-
devices = ["rak10702.toml", "wisblock-api-v2.toml", "wisblock-kit-1.toml", "wisblock-kit-2.toml", "wisblock-kit-4.toml"]
19+
devices = [
20+
"rak10702.toml",
21+
"wisblock-api-v2.toml",
22+
"wisblock-kit-1.toml",
23+
"wisblock-kit-2.toml",
24+
"wisblock-kit-4.toml",
25+
]
2026

2127
# Vendor metadata (optional).
2228
[vendor.metadata]

0 commit comments

Comments
 (0)