From 819f9a14a3b7eee090e5b4ebb4bea6cf140e3261 Mon Sep 17 00:00:00 2001 From: Louis Royer Date: Tue, 21 Jun 2022 21:41:40 +0200 Subject: [PATCH] Run luacheck from pre-commit --- .github/workflows/main.yml | 22 ---------------------- .pre-commit-config.yaml | 4 ++++ README.md | 2 +- 3 files changed, 5 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index eb0cf65..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,22 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the "master" branch - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: -jobs: - luacheck: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Luacheck linter - uses: lunarmodules/luacheck@v0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c488f2d..9b7ac29 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,3 +5,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - id: mixed-line-ending + - repo: https://github.com/lunarmodules/luacheck + rev: v0.26.1 + hooks: + - id: luacheck diff --git a/README.md b/README.md index 3ba9d9d..4c2443f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Toolranks Extras -![Build Status](https://github.com/louisroyer-minetest/toolranks-extras/actions/workflows/main.yml/badge.svg) [![ContentDB](https://content.minetest.net/packages/louisroyer/toolranks_extras/shields/title/)](https://content.minetest.net/packages/louisroyer/toolranks_extras/) [![ContentDB](https://content.minetest.net/packages/louisroyer/toolranks_extras/shields/downloads/)](https://content.minetest.net/packages/louisroyer/toolranks_extras/) +[![ContentDB](https://content.minetest.net/packages/louisroyer/toolranks_extras/shields/title/)](https://content.minetest.net/packages/louisroyer/toolranks_extras/) [![ContentDB](https://content.minetest.net/packages/louisroyer/toolranks_extras/shields/downloads/)](https://content.minetest.net/packages/louisroyer/toolranks_extras/) This minetest mod extends [toolranks](https://github.com/lisacvuk/minetest-toolranks). It adds support for `minetest-games`’s mods (except `default`). This mod currently adds support for hoes from `farming` mod.