From 2314510dcdad8cf3121e47d504bb7403ca39afed Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Fri, 24 Jun 2022 15:01:07 +0530 Subject: [PATCH] ci: add check for unused or dead code in py file adding multiple linters like black for python which will help us with better quality of python code. Also, in the future, we'll aim to get errors for warnings also but there are a lot of warnings and it is difficult to fix at once. Closes: https://github.com/rook/rook/issues/10374 Signed-off-by: subhamkrai --- .github/workflows/linters.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index 5b3d3ed66..3e960aed2 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -56,3 +56,6 @@ jobs: - name: Lint Python files run: pylint $(git ls-files '*.py') -E + + - name: Setup black for py + uses: psf/black@stable