diff --git a/ci/run-ansible-lint.sh b/ci/run-ansible-lint.sh index d2d7561..0f92315 100755 --- a/ci/run-ansible-lint.sh +++ b/ci/run-ansible-lint.sh @@ -2,4 +2,6 @@ set -e set -u +cd "$(dirname "${0}")/.." + ansible-lint . diff --git a/ci/run-black.sh b/ci/run-black.sh index a9c0f0b..f078572 100755 --- a/ci/run-black.sh +++ b/ci/run-black.sh @@ -16,6 +16,8 @@ else exit 1 fi +cd "$(dirname "${0}")/.." + # shellcheck disable=SC2086 find . ! -path '*/\.*' -name '*.py' -print0 | \ xargs -0 -- python3 -m black ${black_arg} -l 80 diff --git a/ci/run-flake8.sh b/ci/run-flake8.sh index 708c225..00b7ee3 100755 --- a/ci/run-flake8.sh +++ b/ci/run-flake8.sh @@ -2,6 +2,8 @@ set -e set -u +cd "$(dirname "${0}")/.." + python3 -m flake8 \ . \ --ignore=W503 \ diff --git a/ci/run-reorder-python-imports.sh b/ci/run-reorder-python-imports.sh index 040f998..010eb8f 100755 --- a/ci/run-reorder-python-imports.sh +++ b/ci/run-reorder-python-imports.sh @@ -2,5 +2,7 @@ set -e set -u +cd "$(dirname "${0}")/.." + find . ! -path '*/\.*' -name '*.py' -print0 | \ xargs -0 -- reorder-python-imports diff --git a/ci/run-yamllint.sh b/ci/run-yamllint.sh index 33eeae2..7a84140 100755 --- a/ci/run-yamllint.sh +++ b/ci/run-yamllint.sh @@ -2,4 +2,6 @@ set -e set -u -yamllint . +cd "$(dirname "${0}")/.." + +yamllint -s .