mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-17 12:50:35 +08:00
isort->usort
Summary: Move from isort to usort now that usort supports sorting within lines. Reviewed By: patricklabatut Differential Revision: D35893280 fbshipit-source-id: 621c1cd285199d785408504430ee0bdf8683b21e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9320100abc
commit
9f443ed26b
@@ -22,8 +22,14 @@
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
DIR=$(dirname "${DIR}")
|
||||
|
||||
echo "Running isort..."
|
||||
isort -y -sp "${DIR}"
|
||||
if [[ -f "${DIR}/tests/TARGETS" ]]
|
||||
then
|
||||
pyfmt "${DIR}"
|
||||
else
|
||||
# run usort externally only
|
||||
echo "Running usort..."
|
||||
usort "${DIR}"
|
||||
fi
|
||||
|
||||
echo "Running black..."
|
||||
black "${DIR}"
|
||||
|
||||
Reference in New Issue
Block a user