From 42ab2da1ed7aef8e6708de2e9b1fc8ecf86d3c1e Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Thu, 8 Jun 2023 11:21:00 +0200 Subject: [PATCH] Sort requires for test files --- aftman.toml | 4 ++-- stylua.toml | 7 +++---- tests/net/serve/requests.luau | 2 +- tests/net/serve/websockets.luau | 2 +- tests/process/exit.luau | 2 +- tests/process/spawn.luau | 2 +- tests/stdio/ewrite.luau | 2 +- tests/stdio/prompt.luau | 4 ++-- tests/task/wait.luau | 2 +- 9 files changed, 13 insertions(+), 14 deletions(-) diff --git a/aftman.toml b/aftman.toml index ffc23c0..7250fe8 100644 --- a/aftman.toml +++ b/aftman.toml @@ -1,5 +1,5 @@ [tools] just = "readysetplay/just@1.8.0" -luau-lsp = "JohnnyMorganz/luau-lsp@1.15.0" +luau-lsp = "JohnnyMorganz/luau-lsp@1.20.0" selene = "Kampfkarren/selene@0.24.0" -stylua = "JohnnyMorganz/StyLua@0.16.0" +stylua = "JohnnyMorganz/StyLua@0.17.0" diff --git a/stylua.toml b/stylua.toml index ef2b3cf..40589d6 100644 --- a/stylua.toml +++ b/stylua.toml @@ -1,10 +1,9 @@ column_width = 100 - line_endings = "Unix" - indent_type = "Tabs" indent_width = 4 - quote_style = "AutoPreferDouble" - call_parentheses = "Always" + +[sort_requires] +enabled = true diff --git a/tests/net/serve/requests.luau b/tests/net/serve/requests.luau index c6042b7..522d35f 100644 --- a/tests/net/serve/requests.luau +++ b/tests/net/serve/requests.luau @@ -1,6 +1,6 @@ local net = require("@lune/net") -local task = require("@lune/task") local process = require("@lune/process") +local task = require("@lune/task") local PORT = 8080 local URL = `http://127.0.0.1:{PORT}` diff --git a/tests/net/serve/websockets.luau b/tests/net/serve/websockets.luau index 339e674..0e7e997 100644 --- a/tests/net/serve/websockets.luau +++ b/tests/net/serve/websockets.luau @@ -1,6 +1,6 @@ local net = require("@lune/net") -local task = require("@lune/task") local process = require("@lune/process") +local task = require("@lune/task") local PORT = 8081 local URL = `http://127.0.0.1:{PORT}` diff --git a/tests/process/exit.luau b/tests/process/exit.luau index e5a8f33..1dab42c 100644 --- a/tests/process/exit.luau +++ b/tests/process/exit.luau @@ -1,6 +1,6 @@ local fs = require("@lune/fs") -local task = require("@lune/task") local process = require("@lune/process") +local task = require("@lune/task") local function assert(condition, err) if not condition then diff --git a/tests/process/spawn.luau b/tests/process/spawn.luau index a698825..6878e8e 100644 --- a/tests/process/spawn.luau +++ b/tests/process/spawn.luau @@ -1,5 +1,5 @@ -local task = require("@lune/task") local process = require("@lune/process") +local task = require("@lune/task") -- Spawning a child process should work with options diff --git a/tests/stdio/ewrite.luau b/tests/stdio/ewrite.luau index b6d3b3e..f501289 100644 --- a/tests/stdio/ewrite.luau +++ b/tests/stdio/ewrite.luau @@ -1,5 +1,5 @@ -local stdio = require("@lune/stdio") local process = require("@lune/process") +local stdio = require("@lune/stdio") stdio.ewrite("Hello, stderr!") diff --git a/tests/stdio/prompt.luau b/tests/stdio/prompt.luau index 3e63a83..e2392af 100644 --- a/tests/stdio/prompt.luau +++ b/tests/stdio/prompt.luau @@ -1,6 +1,6 @@ -local task = require("@lune/task") -local stdio = require("@lune/stdio") local process = require("@lune/process") +local stdio = require("@lune/stdio") +local task = require("@lune/task") -- NOTE: This test is intentionally not included in the -- automated tests suite since it requires user input diff --git a/tests/task/wait.luau b/tests/task/wait.luau index 377f85b..08d727a 100644 --- a/tests/task/wait.luau +++ b/tests/task/wait.luau @@ -1,5 +1,5 @@ -local task = require("@lune/task") local stdio = require("@lune/stdio") +local task = require("@lune/task") -- Wait should be accurate down to at least 10ms