File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1- from  httpx  import  AsyncClient 
21import  pprint 
2+ 
3+ from  httpx  import  AsyncClient 
34from  quart  import  Quart , Response , request 
45from  werkzeug .exceptions  import  BadRequest 
56
6- from  .conf  import  Config ,  BoundEnv 
7+ from  .conf  import  BoundEnv ,  Config 
78from  .hmac  import  HmacVerifyMiddleware 
89
910Quart .__annotations__ ["http_client" ] =  AsyncClient 
1718bound  =  BoundEnv (app .config , app .logger )
1819app .asgi_app  =  HmacVerifyMiddleware (app .asgi_app , bound .github_webhook_secret )
1920
20- from  .handlers  import  router  as  free_handler_router 
21+ from  .handlers  import  router  as  free_handler_router   # noqa: E402, I001 
2122
2223handler_router  =  free_handler_router .bind (bound , app .logger )
2324
Original file line number Diff line number Diff line change 22Configuration for pydisgit 
33""" 
44
5- from  typing  import  Optional 
6- import  logging 
75import  re 
6+ from  typing  import  Optional 
87
98
109class  Config :
Original file line number Diff line number Diff line change 55import  hmac 
66import  logging 
77from  collections .abc  import  Callable 
8+ 
89from  hypercorn .typing  import  Scope 
910
1011logger  =  logging .getLogger (__name__ )
Original file line number Diff line number Diff line change 1- from  dataclasses  import  dataclass 
2- from  hmac  import  HMAC 
31import  re 
4- from  typing  import  NamedTuple ,  Optional 
2+ from  typing  import  Optional 
53
64__NEWLINE_REGEXP  =  re .compile (r"<!--(?:.|\n|\r)*?-->[\n|\r]*" )
75
Original file line number Diff line number Diff line change 22Core logic for webhook handling 
33""" 
44
5+ import  inspect 
56from  collections .abc  import  Callable 
67from  dataclasses  import  dataclass , field 
78from  logging  import  Logger 
8- from  typing  import  Any , Optional , NamedTuple 
9- import  inspect 
9+ from  typing  import  Any , NamedTuple , Optional 
1010
1111from  .conf  import  BoundEnv 
1212from  .util  import  truncate 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments