mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-01-16 08:05:57 +00:00
adds script
This commit is contained in:
parent
0ab2507009
commit
29653fc04b
@ -3,7 +3,12 @@ import logging
|
|||||||
|
|
||||||
from . import app, conf
|
from . import app, conf
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
|
def main():
|
||||||
log_format = "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s"
|
log_format = "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s"
|
||||||
logging.basicConfig(level=50 - 10 * conf.VERBOSE, format=log_format)
|
logging.basicConfig(level=50 - 10 * conf.VERBOSE, format=log_format)
|
||||||
app.run()
|
app.run()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|||||||
@ -27,3 +27,6 @@ ignore = ["D200", "D203", "D204", "D212"]
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["poetry-core>=1.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
|
[tool.poetry.scripts]
|
||||||
|
matrix-webhook = "matrix_webhook.__main__:main"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user