Skip to content

Commit

Permalink
Try to stay in "root" when running CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
zstyblik committed Sep 5, 2024
1 parent abccffc commit f88071b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ci/run-ansible-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
set -e
set -u

cd "$(dirname "${0}")/.."

ansible-lint .
2 changes: 2 additions & 0 deletions ci/run-black.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions ci/run-flake8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
set -e
set -u

cd "$(dirname "${0}")/.."

python3 -m flake8 \
. \
--ignore=W503 \
Expand Down
2 changes: 2 additions & 0 deletions ci/run-reorder-python-imports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
set -e
set -u

cd "$(dirname "${0}")/.."

find . ! -path '*/\.*' -name '*.py' -print0 | \
xargs -0 -- reorder-python-imports
4 changes: 3 additions & 1 deletion ci/run-yamllint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
set -e
set -u

yamllint .
cd "$(dirname "${0}")/.."

yamllint -s .

0 comments on commit f88071b

Please sign in to comment.