Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 177b2d0

Browse files
Move flake8 to end. Don't exit script on failure (#7738)
1 parent b099ef0 commit 177b2d0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.d/7738.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Move `flake8` to the end of `scripts-dev/lint.sh` as it takes the longest and could cause the script to exit early.

scripts-dev/lint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#
33
# Runs linting scripts over the local Synapse checkout
44
# isort - sorts import statements
5-
# flake8 - lints and finds mistakes
65
# black - opinionated code formatter
6+
# flake8 - lints and finds mistakes
77

88
set -e
99

@@ -16,6 +16,6 @@ fi
1616

1717
echo "Linting these locations: $files"
1818
isort -y -rc $files
19-
flake8 $files
2019
python3 -m black $files
2120
./scripts-dev/config-lint.sh
21+
flake8 $files

0 commit comments

Comments
 (0)