diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f1a420b2..7e689d38 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,6 +5,12 @@ repos: rev: 5.12.0 hooks: - id: isort + args: + - --profile + - black + - --project + - tsid + - --filter-files - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.1.6 hooks: diff --git a/exercizes/ex_4_walking.py b/exercizes/ex_4_walking.py index fb223e9d..fffb2694 100644 --- a/exercizes/ex_4_walking.py +++ b/exercizes/ex_4_walking.py @@ -4,11 +4,12 @@ import matplotlib.pyplot as plt import numpy as np import plot_utils as plut -import tsid from numpy import nan from numpy.linalg import norm as norm from tsid_biped import TsidBiped +import tsid + print("".center(conf.LINE_WIDTH, "#")) print(" Test Walking ".center(conf.LINE_WIDTH, "#")) print("".center(conf.LINE_WIDTH, "#"), "\n") diff --git a/tests/python/test_Deprecations.py b/tests/python/test_Deprecations.py index 588ce382..8e0bf828 100644 --- a/tests/python/test_Deprecations.py +++ b/tests/python/test_Deprecations.py @@ -3,6 +3,7 @@ import warnings import numpy as np + import tsid diff --git a/tests/python/test_Formulation.py b/tests/python/test_Formulation.py index 07d3af06..6d993306 100644 --- a/tests/python/test_Formulation.py +++ b/tests/python/test_Formulation.py @@ -2,9 +2,10 @@ import numpy as np import pinocchio as se3 -import tsid from numpy.linalg import norm +import tsid + print("") print("Test InvDyn") print("") diff --git a/tests/python/test_RobotWrapper.py b/tests/python/test_RobotWrapper.py index 6e7bb073..7fa1df85 100644 --- a/tests/python/test_RobotWrapper.py +++ b/tests/python/test_RobotWrapper.py @@ -2,6 +2,7 @@ import numpy as np import pinocchio as se3 + import tsid print("") diff --git a/tests/python/test_Solvers.py b/tests/python/test_Solvers.py index 646bc53f..6c5a9280 100644 --- a/tests/python/test_Solvers.py +++ b/tests/python/test_Solvers.py @@ -1,4 +1,5 @@ import numpy as np + import tsid print("") diff --git a/tests/python/test_Trajectories.py b/tests/python/test_Trajectories.py index 8c0acdd5..0674e989 100644 --- a/tests/python/test_Trajectories.py +++ b/tests/python/test_Trajectories.py @@ -1,5 +1,6 @@ import numpy as np import pinocchio as se3 + import tsid print("")