Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	Update
Browse files- .pre-commit-config.yaml +35 -0
- .style.yapf +5 -0
    	
        .pre-commit-config.yaml
    ADDED
    
    | @@ -0,0 +1,35 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            repos:
         | 
| 2 | 
            +
            - repo: https://github.com/pre-commit/pre-commit-hooks
         | 
| 3 | 
            +
              rev: v4.2.0
         | 
| 4 | 
            +
              hooks:
         | 
| 5 | 
            +
              - id: check-executables-have-shebangs
         | 
| 6 | 
            +
              - id: check-json
         | 
| 7 | 
            +
              - id: check-merge-conflict
         | 
| 8 | 
            +
              - id: check-shebang-scripts-are-executable
         | 
| 9 | 
            +
              - id: check-toml
         | 
| 10 | 
            +
              - id: check-yaml
         | 
| 11 | 
            +
              - id: double-quote-string-fixer
         | 
| 12 | 
            +
              - id: end-of-file-fixer
         | 
| 13 | 
            +
              - id: mixed-line-ending
         | 
| 14 | 
            +
                args: ['--fix=lf']
         | 
| 15 | 
            +
              - id: requirements-txt-fixer
         | 
| 16 | 
            +
              - id: trailing-whitespace
         | 
| 17 | 
            +
            - repo: https://github.com/myint/docformatter
         | 
| 18 | 
            +
              rev: v1.4
         | 
| 19 | 
            +
              hooks:
         | 
| 20 | 
            +
              - id: docformatter
         | 
| 21 | 
            +
                args: ['--in-place']
         | 
| 22 | 
            +
            - repo: https://github.com/pycqa/isort
         | 
| 23 | 
            +
              rev: 5.10.1
         | 
| 24 | 
            +
              hooks:
         | 
| 25 | 
            +
                - id: isort
         | 
| 26 | 
            +
            - repo: https://github.com/pre-commit/mirrors-mypy
         | 
| 27 | 
            +
              rev: v0.812
         | 
| 28 | 
            +
              hooks:
         | 
| 29 | 
            +
                - id: mypy
         | 
| 30 | 
            +
                  args: ['--ignore-missing-imports']
         | 
| 31 | 
            +
            - repo: https://github.com/google/yapf
         | 
| 32 | 
            +
              rev: v0.32.0
         | 
| 33 | 
            +
              hooks:
         | 
| 34 | 
            +
              - id: yapf
         | 
| 35 | 
            +
                args: ['--parallel', '--in-place']
         | 
    	
        .style.yapf
    ADDED
    
    | @@ -0,0 +1,5 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            [style]
         | 
| 2 | 
            +
            based_on_style = pep8
         | 
| 3 | 
            +
            blank_line_before_nested_class_or_def = false
         | 
| 4 | 
            +
            spaces_before_comment = 2
         | 
| 5 | 
            +
            split_before_logical_operator = true
         | 
