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

Commit 3dd61d1

Browse files
Add a linting script (#5627)
Add a dev script to cover all the different linting steps.
1 parent 4d122d2 commit 3dd61d1

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

changelog.d/5627.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `lint.sh` to the scripts-dev folder which will run all linting steps required by CI.

scripts-dev/lint.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
#
3+
# Runs linting scripts over the local Synapse checkout
4+
# isort - sorts import statements
5+
# flake8 - lints and finds mistakes
6+
# black - opinionated code formatter
7+
8+
set -e
9+
10+
isort -y -rc synapse tests scripts-dev scripts
11+
flake8 synapse tests
12+
python3 -m black synapse tests scripts-dev scripts

0 commit comments

Comments
 (0)