diff options
-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: |