mirror of
				https://git.sr.ht/~tsileo/microblog.pub
				synced 2025-06-05 21:59:23 +02:00 
			
		
		
		
	Tweak update task
This commit is contained in:
		
							
								
								
									
										8
									
								
								tasks.py
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								tasks.py
									
									
									
									
									
								
							| @@ -146,9 +146,11 @@ def install_deps(ctx): | ||||
|     run("poetry install", pty=True, echo=True) | ||||
|  | ||||
|  | ||||
| @task(compile_scss, migrate_db) | ||||
| def update(ctx): | ||||
|     # type: (Context) -> None | ||||
| @task(pre=[compile_scss], post=[migrate_db]) | ||||
| def update(ctx, update_deps=True): | ||||
|     # type: (Context, bool) -> None | ||||
|     if update_deps: | ||||
|         run("poetry install", pty=True, echo=True) | ||||
|     print("Done") | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user