diff options
author | Steven Arcangeli <stevearc@stevearc.com> | 2023-08-28 18:28:00 -0700 |
---|---|---|
committer | Steven Arcangeli <stevearc@stevearc.com> | 2023-08-28 18:28:00 -0700 |
commit | 9bb703e9ad738f9e5380d1e8e69cb4e36bed2366 (patch) | |
tree | 79b4644a7195252e792c4a34ba5b5db099b3cecf | |
parent | d508ae8f46b5b41e2806b412311719a941167c1a (diff) |
tools: split fast and slow lint commands
-rwxr-xr-x | .github/pre-commit | 2 | ||||
-rwxr-xr-x | .github/pre-push | 4 | ||||
-rw-r--r-- | Makefile | 6 |
3 files changed, 9 insertions, 3 deletions
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 @@ -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: |