From 9bb703e9ad738f9e5380d1e8e69cb4e36bed2366 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Mon, 28 Aug 2023 18:28:00 -0700 Subject: tools: split fast and slow lint commands --- .github/pre-commit | 2 +- .github/pre-push | 4 ++++ Makefile | 6 ++++-- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100755 .github/pre-push diff --git a/.github/pre-commit b/.github/pre-commit index 240abeb..c64fbec 100755 --- a/.github/pre-commit +++ b/.github/pre-commit @@ -1,3 +1,3 @@ #!/bin/bash set -e -make lint +make fastlint diff --git a/.github/pre-push b/.github/pre-push new file mode 100755 index 0000000..b837eec --- /dev/null +++ b/.github/pre-push @@ -0,0 +1,4 @@ +#!/bin/bash +set -e +make lint +make test diff --git a/Makefile b/Makefile index 3a52951..85ff804 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: doc test lint +.PHONY: doc test lint fastlint doc: scripts/nvim_doc_tools python scripts/main.py generate @@ -6,10 +6,12 @@ doc: scripts/nvim_doc_tools test: ./run_tests.sh -lint: scripts/nvim-typecheck-action scripts/nvim_doc_tools +fastlint: scripts/nvim_doc_tools python scripts/main.py lint luacheck lua tests --formatter plain stylua --check lua tests + +lint: scripts/nvim-typecheck-action fastlint ./scripts/nvim-typecheck-action/typecheck.sh lua scripts/nvim_doc_tools: -- cgit v1.2.3-70-g09d2