diff --git a/scripts/check_pre_submit.sh b/scripts/check_pre_submit.sh index 7ea7c37f41..4dbe7747f6 100755 --- a/scripts/check_pre_submit.sh +++ b/scripts/check_pre_submit.sh @@ -1,8 +1,8 @@ #!/bin/bash -# black checks formating -echo ">>> Run the pre-submit format check with \`black .\`." -python3 -m black --exclude '(env|venv|.eggs|.git)' . +# ruff checks formating +echo ">>> Run the pre-submit format check with \`ruff format .\`." +ruff format . echo ">>> Run the pre-submit format check with \`mypy\`." diff --git a/scripts/environments/apple_m1_environment.yml b/scripts/environments/apple_m1_environment.yml index c18da7236a..a3712e267c 100644 --- a/scripts/environments/apple_m1_environment.yml +++ b/scripts/environments/apple_m1_environment.yml @@ -13,7 +13,6 @@ dependencies: - backcall=0.2.0=pyh9f0ad1d_0 - backports=1.0=pyhd8ed1ab_3 - backports.functools_lru_cache=1.6.4=pyhd8ed1ab_0 - - black=23.7.0=py310hbe9552e_1 - beautifulsoup4=4.12.2=pyha770c72_0 - bleach=6.0.0=pyhd8ed1ab_0 - brotli=1.0.9=h1a8c8d9_8