diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2021-12-14 23:54:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 23:54:58 +0100 |
commit | 39dc44bfa5fbb9500166b3480295379602e5bbc5 (patch) | |
tree | ee785ba8d9e189fb2b1bffda19492414cd7c0d2c /.github/workflows | |
parent | b490b5d51af6ed29709c357a00fcdb6bda26df78 (diff) | |
download | psutil-39dc44bfa5fbb9500166b3480295379602e5bbc5.tar.gz |
Automatically sort imports (isort CLI tool) (#2033)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 8 |
1 files changed, 5 insertions, 3 deletions
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" |