mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-23 23:59:25 -05:00
3dd61d12cd
Add a dev script to cover all the different linting steps.
13 lines
302 B
Bash
Executable File
13 lines
302 B
Bash
Executable File
#!/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
|