Skip to content

Commit

Permalink
ci: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity committed Aug 16, 2024
1 parent 071916e commit b566c32
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,19 @@ jobs:

- name: Check if the lint configuration matches the one in the DAS repository.
run: |-
master_lint=$(curl -s https://raw.githubusercontent.com/singnet/das/master/python/.pylintrc | shasum -a 256 | cut -d ' ' -f 1)
local_lint=$(shasum -a 256 .pylintrc | cut -d ' ' -f 1)
config_files=(".black.cfg" ".flake8.cfg" ".isort.cfg")
if [ "$master_lint" != "$local_lint" ]; then
echo "The local lint configuration differs from the one in the DAS repository."
exit 1
fi
for config_file in "${config_files[@]}"; do
master_lint=$(curl -s https://raw.githubusercontent.com/singnet/das/master/.lint/${config_file} | shasum -a 256 | cut -d ' ' -f 1)
local_lint=$(shasum -a 256 ${config_file} | cut -d ' ' -f 1)
if [ "$master_lint" != "$local_lint" ]; then
echo "The local lint configuration differs from the one in the DAS repository."
exit 1
fi
done
echo "All lint configurations match the ones in the DAS repository."
- name: Perform Code Linting
run: make lint
Expand Down

0 comments on commit b566c32

Please sign in to comment.