mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:02:44 +00:00 
			
		
		
		
	Meta: Resolve some pylint violations in Python lint scripts
Resolves: * all: consider-using-sys-exit * all: wrong-import-order * all: TODO: Require that a few keys are set? (fixme) * some: missing-function-docstring * some: line-too-long
This commit is contained in:
		
							parent
							
								
									e875513ff7
								
							
						
					
					
						commit
						666aeecaa2
					
				
					 4 changed files with 140 additions and 54 deletions
				
			
		|  | @ -1,8 +1,8 @@ | |||
| #!/usr/bin/env python3 | ||||
| 
 | ||||
| import json | ||||
| import requests | ||||
| import sys | ||||
| import requests | ||||
| 
 | ||||
| # Must be exactly three lines each! | ||||
| # No trailing newline! (I.e. keep it as backslash-newline-tripleapostrophe.) | ||||
|  | @ -83,6 +83,12 @@ def compute_lines(wrapper): | |||
| 
 | ||||
| 
 | ||||
| def send_notification(line): | ||||
|     """Send a message to IRC channel via HTTP bridge. | ||||
| 
 | ||||
|     Ars: | ||||
|         line (str): message to send | ||||
|     """ | ||||
| 
 | ||||
|     print('> ' + line) | ||||
|     try: | ||||
|         response = requests.post(SERENITY_BOT, data={'msg': line}) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brendan Coles
						Brendan Coles