summary refs log tree commit diff
path: root/scripts-dev
diff options
context:
space:
mode:
authorQuentin Gliech <quenting@element.io>2024-08-30 10:07:46 +0200
committerGitHub <noreply@github.com>2024-08-30 10:07:46 +0200
commitcdd5979129211a6906ca12c4f6f6ac7a108c2fb7 (patch)
treeca4989fa07d112a120d1c1a20c97674a070a8901 /scripts-dev
parentSliding sync: Ignore tables with no create event in current state (#17633) (diff)
downloadsynapse-cdd5979129211a6906ca12c4f6f6ac7a108c2fb7.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')
-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