mirror of
				https://github.com/fastapi-users/fastapi-users.git
				synced 2025-11-04 06:37:51 +08:00 
			
		
		
		
	Added codestyle check and lint to the build action (#798)
* Applied `make format` * Added format-check to makefile * Added a "Check codestyle" step to the build action. * Rerun `make format` * Added a "lint" target to makefile * Added lint step to the build action * Added W503 to the list of ignored flake8 errors. See https://www.flake8rules.com/rules/W503.html
This commit is contained in:
		@ -1,10 +1,9 @@
 | 
			
		||||
import contextlib
 | 
			
		||||
 | 
			
		||||
from fastapi_users.manager import UserAlreadyExists
 | 
			
		||||
 | 
			
		||||
from app.db import get_user_db
 | 
			
		||||
from app.models import UserCreate
 | 
			
		||||
from app.users import get_user_manager
 | 
			
		||||
from fastapi_users.manager import UserAlreadyExists
 | 
			
		||||
 | 
			
		||||
get_user_db_context = contextlib.asynccontextmanager(get_user_db)
 | 
			
		||||
get_user_manager_context = contextlib.asynccontextmanager(get_user_manager)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user