add precommit (copy of coreutils)
This commit is contained in:
		
				
					committed by
					
						
						Daniel Hofstetter
					
				
			
			
				
	
			
			
			
						parent
						
							fa608413b2
						
					
				
				
					commit
					c5004ad8f6
				
			
							
								
								
									
										17
									
								
								.pre-commit-config.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								.pre-commit-config.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
repos:
 | 
			
		||||
-   repo: local
 | 
			
		||||
    hooks:
 | 
			
		||||
    -   id: rust-linting
 | 
			
		||||
        name: Rust linting
 | 
			
		||||
        description: Run cargo fmt on files included in the commit.
 | 
			
		||||
        entry: cargo +stable fmt --
 | 
			
		||||
        pass_filenames: true
 | 
			
		||||
        types: [file, rust]
 | 
			
		||||
        language: system
 | 
			
		||||
    -   id: rust-clippy
 | 
			
		||||
        name: Rust clippy
 | 
			
		||||
        description: Run cargo clippy on files included in the commit.
 | 
			
		||||
        entry: cargo +stable clippy --workspace --all-targets --all-features --
 | 
			
		||||
        pass_filenames: false
 | 
			
		||||
        types: [file, rust]
 | 
			
		||||
        language: system
 | 
			
		||||
		Reference in New Issue
	
	Block a user