This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a dev script to cover all the different linting steps.
- Loading branch information
1 parent
4d122d2
commit 3dd61d1
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add `lint.sh` to the scripts-dev folder which will run all linting steps required by CI. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
# | ||
# Runs linting scripts over the local Synapse checkout | ||
# isort - sorts import statements | ||
# flake8 - lints and finds mistakes | ||
# black - opinionated code formatter | ||
|
||
set -e | ||
|
||
isort -y -rc synapse tests scripts-dev scripts | ||
flake8 synapse tests | ||
python3 -m black synapse tests scripts-dev scripts |