improve: introduce isort for linting Python imports (#1983)
This commit is contained in:
parent
cca9edc97a
commit
cc9e74123c
413 changed files with 1635 additions and 1906 deletions
11
dev/reformat
Executable file
11
dev/reformat
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
# python style checks rely on `isort` in path
|
||||
if ! command -v isort &> /dev/null
|
||||
then
|
||||
echo "Skip Python imports linting, since 'isort' is not available. Please install it with 'pip install isort'."
|
||||
else
|
||||
isort --settings ./.github/linters/.isort.cfg ./
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue