summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-16 15:36:28 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-16 15:36:28 +0000
commit4f2e76e6d2d5ffa796f97d49354c5880068628c2 (patch)
treec88b9559c5670bd4bdf06b8ef176fcdd3f114d7d
parentFix small typo in comment (#6269) (diff)
parentUpdate CI to run isort on scripts and scripts-dev (#6270) (diff)
downloadsynapse-4f2e76e6d2d5ffa796f97d49354c5880068628c2.tar.xz
Update CI to run isort on scripts and scripts-dev (#6270)
* commit '2cab02f9d':
-rw-r--r--changelog.d/6270.misc1
-rwxr-xr-xscripts-dev/update_database3
-rw-r--r--tox.ini2
3 files changed, 3 insertions, 3 deletions
diff --git a/changelog.d/6270.misc b/changelog.d/6270.misc
new file mode 100644
index 0000000000..d1c5811323
--- /dev/null
+++ b/changelog.d/6270.misc
@@ -0,0 +1 @@
+Update CI to run `isort` over the `scripts` and `scripts-dev` directories.
\ No newline at end of file
diff --git a/scripts-dev/update_database b/scripts-dev/update_database
index 10166583e1..27a1ad1e7e 100755
--- a/scripts-dev/update_database
+++ b/scripts-dev/update_database
@@ -25,8 +25,8 @@ from twisted.internet import defer, reactor
 from synapse.config.homeserver import HomeServerConfig
 from synapse.metrics.background_process_metrics import run_as_background_process
 from synapse.server import HomeServer
-from synapse.storage.engines import create_engine
 from synapse.storage import DataStore
+from synapse.storage.engines import create_engine
 from synapse.storage.prepare_database import prepare_database
 
 logger = logging.getLogger("update_database")
@@ -122,4 +122,3 @@ if __name__ == "__main__":
     ))
 
     reactor.run()
-
diff --git a/tox.ini b/tox.ini
index e8db44c18c..d56693ae4a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -123,7 +123,7 @@ commands =
 [testenv:check_isort]
 skip_install = True
 deps = isort
-commands = /bin/sh -c "isort -c -df -sp setup.cfg -rc synapse tests"
+commands = /bin/sh -c "isort -c -df -sp setup.cfg -rc synapse tests scripts-dev scripts"
 
 [testenv:check-newsfragment]
 skip_install = True