From 298e2e6cc3843b65ae2908bb28f4af0f3a108b7d Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Wed, 11 Sep 2024 04:35:48 -0400 Subject: [PATCH] Static checks: introduce usage of "avocado-static-checks" project This enables the bare minimum of the avocado-static-checks usage, adds the submodule switches the "isort" check, one of the most simplistic, to the one provided by the avocado-static-checks repo. In the long run, the symlinks will be removed and the "static-checks" suite in the "selftests/check.py" script will be updated. Signed-off-by: Cleber Rosa --- .gitmodules | 3 +++ selftests/isort.sh | 4 +--- static-checks | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .gitmodules mode change 100755 => 120000 selftests/isort.sh create mode 160000 static-checks diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000..d9445cc719 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "static-checks"] + path = static-checks + url = https://github.com/avocado-framework/avocado-static-checks diff --git a/selftests/isort.sh b/selftests/isort.sh deleted file mode 100755 index c257898c87..0000000000 --- a/selftests/isort.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -e - -isort --check-only --profile black . diff --git a/selftests/isort.sh b/selftests/isort.sh new file mode 120000 index 0000000000..0454449259 --- /dev/null +++ b/selftests/isort.sh @@ -0,0 +1 @@ +../static-checks/check-import-order \ No newline at end of file diff --git a/static-checks b/static-checks new file mode 160000 index 0000000000..a7f8a7f74c --- /dev/null +++ b/static-checks @@ -0,0 +1 @@ +Subproject commit a7f8a7f74c34132b648bfa46184101b7ffc0b071