mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	add-black (#1593)
* Add black Update pre commit Update pre commit add empty line * Format with black
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							2b60b0f1fa
						
					
				
				
					commit
					69879920eb
				
			| @@ -1,11 +1,27 @@ | ||||
| # See https://pre-commit.com for more information | ||||
| # See https://pre-commit.com/hooks.html for more hooks | ||||
| repos: | ||||
| -   repo: https://github.com/pre-commit/pre-commit-hooks | ||||
|     rev: v2.4.0 | ||||
|   - repo: https://github.com/ambv/black | ||||
|     rev: 20.8b1 | ||||
|     hooks: | ||||
|     -   id: trailing-whitespace | ||||
|     -   id: end-of-file-fixer | ||||
|     -   id: check-yaml | ||||
|     -   id: check-added-large-files | ||||
|     -   id: flake8 | ||||
|     - id: black | ||||
|       args: | ||||
|         - --safe | ||||
|         - --quiet | ||||
|       files: ^((esphome|script|tests)/.+)?[^/]+\.py$ | ||||
|   - repo: https://gitlab.com/pycqa/flake8 | ||||
|     rev: 3.8.4 | ||||
|     hooks: | ||||
|       - id: flake8 | ||||
|         additional_dependencies: | ||||
|           - flake8-docstrings==1.5.0 | ||||
|           - pydocstyle==5.1.1 | ||||
|         files: ^(esphome|tests)/.+\.py$ | ||||
|   - repo: https://github.com/pre-commit/pre-commit-hooks | ||||
|     rev: v3.4.0 | ||||
|     hooks: | ||||
|       - id: no-commit-to-branch | ||||
|         args: | ||||
|           - --branch=dev | ||||
|           - --branch=master | ||||
|           - --branch=beta | ||||
|   | ||||
		Reference in New Issue
	
	Block a user