2023-10-16 23:54:28 +02:00
|
|
|
.PHONY: all doc test lint fastlint clean update_snapshots
|
2023-09-02 08:39:50 +02:00
|
|
|
|
|
|
|
all: doc lint test
|
|
|
|
|
2023-10-16 23:54:28 +02:00
|
|
|
# Regenerate documentation
|
2023-09-02 08:39:50 +02:00
|
|
|
doc: scripts/nvim_doc_tools
|
|
|
|
python scripts/main.py generate
|
|
|
|
|
2023-10-16 23:54:28 +02:00
|
|
|
# Run the test suite
|
2023-09-02 08:39:50 +02:00
|
|
|
test:
|
|
|
|
./run_tests.sh
|
|
|
|
|
2023-10-16 23:54:28 +02:00
|
|
|
# Update the symbols snapshot files
|
|
|
|
update_snapshots:
|
|
|
|
./run_tests.sh --update
|
|
|
|
|
|
|
|
# Run all linters
|
2023-09-02 08:39:50 +02:00
|
|
|
lint: scripts/nvim-typecheck-action fastlint
|
|
|
|
./scripts/nvim-typecheck-action/typecheck.sh --workdir scripts/nvim-typecheck-action lua
|
|
|
|
|
2023-10-16 23:54:28 +02:00
|
|
|
# Run all the fast linters
|
2023-09-02 08:39:50 +02:00
|
|
|
fastlint: scripts/nvim_doc_tools
|
|
|
|
python scripts/main.py lint
|
|
|
|
luacheck lua tests --formatter plain
|
|
|
|
stylua --check lua tests
|
|
|
|
|
|
|
|
scripts/nvim_doc_tools:
|
|
|
|
git clone https://github.com/stevearc/nvim_doc_tools scripts/nvim_doc_tools
|
|
|
|
|
|
|
|
scripts/nvim-typecheck-action:
|
|
|
|
git clone https://github.com/stevearc/nvim-typecheck-action scripts/nvim-typecheck-action
|
|
|
|
|
|
|
|
clean:
|
2024-08-30 18:31:32 +02:00
|
|
|
rm -rf scripts/nvim_doc_tools scripts/nvim-typecheck-action .testenv
|