summary refs log tree commit diff
path: root/scripts-dev/lint.sh
diff options
context:
space:
mode:
authorQuentin Gliech <quenting@element.io>2024-08-30 10:07:46 +0200
committerErik Johnston <erik@matrix.org>2024-08-30 15:32:43 +0100
commit26c1330764911262a6ee16069b17ba27d33871a9 (patch)
tree3b46f420138e7860f85e3d42c7917d0785613de8 /scripts-dev/lint.sh
parentMSC3861: load the issuer and account management URLs from OIDC discovery (#17... (diff)
downloadsynapse-26c1330764911262a6ee16069b17ba27d33871a9.tar.xz
Replace isort and black with ruff (#17620)
Ruff now has decent parity with black and isort, so this is going to just save us a bunch of time
Diffstat (limited to 'scripts-dev/lint.sh')
-rwxr-xr-xscripts-dev/lint.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts-dev/lint.sh b/scripts-dev/lint.sh

index 8acf0a6fb8..fa6ff90708 100755 --- a/scripts-dev/lint.sh +++ b/scripts-dev/lint.sh
@@ -1,8 +1,9 @@ #!/usr/bin/env bash # # Runs linting scripts over the local Synapse checkout -# black - opinionated code formatter # ruff - lints and finds mistakes +# mypy - typechecks python code +# cargo clippy - lints rust code set -e @@ -101,12 +102,6 @@ echo # Print out the commands being run set -x -# Ensure the sort order of imports. -isort "${files[@]}" - -# Ensure Python code conforms to an opinionated style. -python3 -m black "${files[@]}" - # Ensure the sample configuration file conforms to style checks. ./scripts-dev/config-lint.sh