mirror of
				https://github.com/edera-dev/krata.git
				synced 2025-11-03 23:29:39 +00:00 
			
		
		
		
	introduce lefthook support to check commits
This commit is contained in:
		@ -1,5 +1,5 @@
 | 
				
			|||||||
use env_logger::Env;
 | 
					 | 
				
			||||||
use anyhow::{anyhow, Result};
 | 
					use anyhow::{anyhow, Result};
 | 
				
			||||||
 | 
					use env_logger::Env;
 | 
				
			||||||
use hypha::container::init::ContainerInit;
 | 
					use hypha::container::init::ContainerInit;
 | 
				
			||||||
use std::env;
 | 
					use std::env;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
use env_logger::Env;
 | 
					 | 
				
			||||||
use anyhow::{anyhow, Result};
 | 
					use anyhow::{anyhow, Result};
 | 
				
			||||||
use clap::{Parser, Subcommand};
 | 
					use clap::{Parser, Subcommand};
 | 
				
			||||||
 | 
					use env_logger::Env;
 | 
				
			||||||
use hypha::ctl::Controller;
 | 
					use hypha::ctl::Controller;
 | 
				
			||||||
use std::path::PathBuf;
 | 
					use std::path::PathBuf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										14
									
								
								lefthook.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								lefthook.toml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
				
			|||||||
 | 
					[pre-commit]
 | 
				
			||||||
 | 
					parallel = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[pre-commit.commands.build]
 | 
				
			||||||
 | 
					run = "cargo build --target x86_64-unknown-linux-gnu"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[pre-commit.commands.test]
 | 
				
			||||||
 | 
					run = "cargo test --target x86_64-unknown-linux-gnu"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[pre-commit.commands.fmt]
 | 
				
			||||||
 | 
					run = "cargo fmt --all -- --check"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[pre-commit.commands.clippy]
 | 
				
			||||||
 | 
					run = "cargo clippy --target x86_64-unknown-linux-gnu"
 | 
				
			||||||
		Reference in New Issue
	
	Block a user