diff --git a/.github/workflows/code_formatter.yml b/.github/workflows/code_formatter.yml index 4018b926..bb44b59e 100644 --- a/.github/workflows/code_formatter.yml +++ b/.github/workflows/code_formatter.yml @@ -23,11 +23,13 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install Black - run: pip install "black[jupyter]" + - name: Install Black and autoflake + run: pip install "black[jupyter]" autoflake + + - name: Run autoflake + run: autoflake --in-place --recursive . - name: Run Black - # run: black $(git ls-files '*.py') run: black . --exclude=".*\.ipynb$" - name: Commit Back