From c0861efe4c199355e6c61be17d8251a80fc071f7 Mon Sep 17 00:00:00 2001 From: p4v4n Date: Tue, 13 Feb 2024 11:21:50 +0530 Subject: [PATCH] Update Eldev config (#3620) --- .circleci/config.yml | 4 ++-- Eldev | 5 +++-- Makefile | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ff4189d64..5e843a02f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -48,7 +48,7 @@ commands: steps: - run: name: Run Elisp-lint - command: eldev lint + command: eldev lint -c - run: name: Byte-compile .el files command: eldev -dtT compile --warnings-as-errors @@ -106,7 +106,7 @@ jobs: - run: name: Install Emacs latest command: | - choco install emacs + choco install emacs -y - setup-windows - test diff --git a/Eldev b/Eldev index 43a232c66..33656d2ea 100644 --- a/Eldev +++ b/Eldev @@ -1,8 +1,9 @@ -; -*- mode: emacs-lisp; lexical-binding: t; no-byte-compile: t -*- +; -*- mode: emacs-lisp; lexical-binding: t -*- -(eldev-require-version "0.6") +(eldev-require-version "1.8.2") (eldev-use-package-archive 'gnu) + ;; For compatibility; e.g. with MELPA Stable one test fails. (eldev-use-package-archive 'melpa-unstable) diff --git a/Makefile b/Makefile index 3c30afe99..2fc0ae757 100644 --- a/Makefile +++ b/Makefile @@ -7,13 +7,13 @@ # Remove byte-compilation artifacts, which can alter the result of the test suite: clean: - cd ~/.emacs.d; find . -type f -name "*.elc" -exec rm {} + + eldev clean # You can find a generic `eldev` installation script in https://github.com/emacs-eldev/eldev/blob/master/webinstall/eldev # (Don't use the one defined for CircleCI in your local machine) lint: clean - eldev lint + eldev lint -c # Checks for byte-compilation warnings. compile: clean