adds script
This commit is contained in:
		
					parent
					
						
							
								0ab2507009
							
						
					
				
			
			
				commit
				
					
						29653fc04b
					
				
			
		
					 2 changed files with 9 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3,7 +3,12 @@ import logging
 | 
			
		|||
 | 
			
		||||
from . import app, conf
 | 
			
		||||
 | 
			
		||||
if __name__ == "__main__":
 | 
			
		||||
 | 
			
		||||
def main():
 | 
			
		||||
    log_format = "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s"
 | 
			
		||||
    logging.basicConfig(level=50 - 10 * conf.VERBOSE, format=log_format)
 | 
			
		||||
    app.run()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == "__main__":
 | 
			
		||||
    main()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,3 +27,6 @@ ignore = ["D200", "D203", "D204", "D212"]
 | 
			
		|||
[build-system]
 | 
			
		||||
requires = ["poetry-core>=1.0.0"]
 | 
			
		||||
build-backend = "poetry.core.masonry.api"
 | 
			
		||||
 | 
			
		||||
[tool.poetry.scripts]
 | 
			
		||||
matrix-webhook = "matrix_webhook.__main__:main"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue