Use Cockpit's shared static code checks

These will soon take over ESLint and stylelint, plus they also cover
ruff and other goodies for the Python part. This supersedes the explicit
ruff call.

This is already being used by cockpit-{podman,machines,navigator} etc.
This commit is contained in:
Martin Pitt 2024-02-07 16:31:04 +01:00 committed by Martin Pitt
parent ad0a653f82
commit 5d2840449a
2 changed files with 5 additions and 2 deletions

View file

@ -29,6 +29,7 @@ all: $(DIST_TEST)
COCKPIT_REPO_FILES = \
pkg/lib \
test/common \
test/static-code \
$(NULL)
COCKPIT_REPO_URL = https://github.com/cockpit-project/cockpit.git
@ -178,6 +179,9 @@ prepare-check: $(NODE_MODULES_TEST) $(VM_IMAGE) test/common
check: prepare-check
test/common/run-tests ${RUN_TESTS_OPTIONS}
codecheck: test/static-code $(NODE_MODULES_TEST)
test/static-code
# checkout Cockpit's bots for standard test VM images and API to launch them
bots: $(COCKPIT_REPO_STAMP)
test/common/make-bots

View file

@ -11,6 +11,5 @@ export RUN_TESTS_OPTIONS=--track-naughties
# linters are off by default for production builds, but we want to run them in CI
export LINT=1
make codecheck
make check
ruff check test/check*