Add pre-commit
This commit is contained in:
		
							
								
								
									
										13
									
								
								.pre-commit-config.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								.pre-commit-config.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| repos: | ||||
|     - repo: https://github.com/ambv/black | ||||
|       rev: 19.3b0 | ||||
|       hooks: | ||||
|         - id: black | ||||
|           language_version: python3 | ||||
|  | ||||
|     - repo: https://github.com/pre-commit/pre-commit-hooks | ||||
|       rev: v2.2.3 | ||||
|       hooks: | ||||
|         - id: trailing-whitespace | ||||
|         - id: end-of-file-fixer | ||||
|         - id: flake8 | ||||
		Reference in New Issue
	
	Block a user