forked from open-webui/open-webui
		
	chore: add format:backend npm script to match ci
This commit is contained in:
		
							parent
							
								
									a6c154d839
								
							
						
					
					
						commit
						11850b75c8
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								.github/workflows/format-backend.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/format-backend.yaml
									
										
									
									
										vendored
									
									
								
							|  | @ -33,7 +33,7 @@ jobs: | |||
|           pip install black | ||||
| 
 | ||||
|       - name: Format backend | ||||
|         run: black . --exclude "/venv/" | ||||
|         run: npm run format:backend | ||||
| 
 | ||||
|       - name: Check for changes after format | ||||
|         run: git diff --exit-code | ||||
|  |  | |||
|  | @ -13,6 +13,7 @@ | |||
| 		"lint:types": "npm run check", | ||||
| 		"lint:backend": "pylint backend/", | ||||
| 		"format": "prettier --plugin-search-dir --write '**/*.{js,ts,svelte,css,md,html,json}'", | ||||
| 		"format:backend": "black . --exclude \"/venv/\"", | ||||
| 		"i18n:parse": "i18next --config i18next-parser.config.ts && prettier --write 'src/lib/i18n/**/*.{js,json}'" | ||||
| 	}, | ||||
| 	"devDependencies": { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jun Siang Cheah
						Jun Siang Cheah