mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Update CI to run isort on scripts and scripts-dev (#6270)
This commit is contained in:
parent
7955abeaac
commit
2cab02f9d1
1
changelog.d/6270.misc
Normal file
1
changelog.d/6270.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Update CI to run `isort` over the `scripts` and `scripts-dev` directories.
|
@ -25,8 +25,8 @@ from twisted.internet import defer, reactor
|
|||||||
from synapse.config.homeserver import HomeServerConfig
|
from synapse.config.homeserver import HomeServerConfig
|
||||||
from synapse.metrics.background_process_metrics import run_as_background_process
|
from synapse.metrics.background_process_metrics import run_as_background_process
|
||||||
from synapse.server import HomeServer
|
from synapse.server import HomeServer
|
||||||
from synapse.storage.engines import create_engine
|
|
||||||
from synapse.storage import DataStore
|
from synapse.storage import DataStore
|
||||||
|
from synapse.storage.engines import create_engine
|
||||||
from synapse.storage.prepare_database import prepare_database
|
from synapse.storage.prepare_database import prepare_database
|
||||||
|
|
||||||
logger = logging.getLogger("update_database")
|
logger = logging.getLogger("update_database")
|
||||||
@ -122,4 +122,3 @@ if __name__ == "__main__":
|
|||||||
))
|
))
|
||||||
|
|
||||||
reactor.run()
|
reactor.run()
|
||||||
|
|
||||||
|
2
tox.ini
2
tox.ini
@ -123,7 +123,7 @@ commands =
|
|||||||
[testenv:check_isort]
|
[testenv:check_isort]
|
||||||
skip_install = True
|
skip_install = True
|
||||||
deps = isort
|
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]
|
[testenv:check-newsfragment]
|
||||||
skip_install = True
|
skip_install = True
|
||||||
|
Loading…
Reference in New Issue
Block a user