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

Commit

Permalink
Add a linting script (#5627)
Browse files Browse the repository at this point in the history
Add a dev script to cover all the different linting steps.
  • Loading branch information
anoadragon453 authored Jul 10, 2019
1 parent 4d122d2 commit 3dd61d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/5627.misc
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.
12 changes: 12 additions & 0 deletions scripts-dev/lint.sh
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

0 comments on commit 3dd61d1

Please sign in to comment.