Skip to content
Snippets Groups Projects
Unverified Commit 3dd61d12 authored by Andrew Morgan's avatar Andrew Morgan Committed by GitHub
Browse files

Add a linting script (#5627)

Add a dev script to cover all the different linting steps.
parent 4d122d29
No related branches found
No related tags found
No related merge requests found
Add `lint.sh` to the scripts-dev folder which will run all linting steps required by CI.
#!/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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment