mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-25 08:59:31 -05:00
Add a linting script (#5627)
Add a dev script to cover all the different linting steps.
This commit is contained in:
parent
4d122d295c
commit
3dd61d12cd
1
changelog.d/5627.misc
Normal file
1
changelog.d/5627.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Add `lint.sh` to the scripts-dev folder which will run all linting steps required by CI.
|
12
scripts-dev/lint.sh
Executable file
12
scripts-dev/lint.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user