From 39dc44bfa5fbb9500166b3480295379602e5bbc5 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Tue, 14 Dec 2021 23:54:58 +0100 Subject: Automatically sort imports (isort CLI tool) (#2033) --- .github/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca026299..5fd6e735 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -161,12 +161,14 @@ jobs: - uses: actions/setup-python@v2 - name: 'Run linters' run: | + # py2 curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py python2 get-pip.py python2 -m pip install flake8 - python3 -m pip install flake8 python2 -m flake8 . + # py3 + python3 -m pip install flake8 isort python3 -m flake8 . - echo "flake8 linting OK" + python3 -m isort --settings=.isort.cfg . + # clinter find . -type f \( -iname "*.c" -o -iname "*.h" \) | xargs python3 scripts/internal/clinter.py - echo "C linting OK" -- cgit v1.2.1