From 15a5a8cba5b4b531cf8ece664c8ceeb979f06af4 Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Fri, 21 Mar 2025 21:39:39 +0200 Subject: [PATCH] docs: update CONTRIBUTING --- CONTRIBUTING.md | 9 ++++----- Taskfile.yml | 12 +----------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1a825db..ef377e2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -22,9 +22,8 @@ sudo pacman -S selene stylua For formatting use this following commands, or setup your editor to integrate with selene/stylua: ```bash -task format -task format:check # will check if your code formatted -task lint +task stylua +task lint # lintering and format chewing ``` ### Documentation @@ -43,8 +42,8 @@ We use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/), p ### Testing -For testing this plugins uses [plenary.nvim](https://github.com/nvim-lua/plenary.nvim). -All tests live in [/spec](https://github.com/olexsmir/gopher.nvim/tree/main/spec) dir. +For testing this plugins uses [mini.test](https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-test.md). +All tests live in [/spec](./spec) dir. You can run tests with: ```bash diff --git a/Taskfile.yml b/Taskfile.yml index c6f5339..3900751 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -1,26 +1,16 @@ version: "3" tasks: - format: - desc: formats all lua files in repo - cmds: - - stylua . - lint: desc: runs all linters cmds: - task: selene - - task: stylua:check + - stylua --check . selene: desc: runs lua linter(selene) cmds: - selene . - stylua:check: - desc: runs stylua in check mode - cmds: - - stylua --check . - stylua: desc: runs lua formatter cmds: