Adding pre-commit hooks
							parent
							
								
									d9d7b14b80
								
							
						
					
					
						commit
						79657b585c
					
				@ -0,0 +1,27 @@
 | 
			
		||||
default_stages: [commit, push]
 | 
			
		||||
repos:
 | 
			
		||||
  - repo: https://github.com/pre-commit/pre-commit-hooks
 | 
			
		||||
    rev: v3.2.0
 | 
			
		||||
    hooks:
 | 
			
		||||
      - id: trailing-whitespace
 | 
			
		||||
      - id: end-of-file-fixer
 | 
			
		||||
      - id: check-yaml
 | 
			
		||||
      - id: check-added-large-files
 | 
			
		||||
  - repo: https://github.com/psf/black
 | 
			
		||||
    rev: 22.8.0
 | 
			
		||||
    hooks:
 | 
			
		||||
      - id: black
 | 
			
		||||
  # https://pylint.pycqa.org/en/latest/user_guide/installation/pre-commit-integration.html
 | 
			
		||||
  - repo: local
 | 
			
		||||
    hooks:
 | 
			
		||||
      - id: pylint
 | 
			
		||||
        name: pylint
 | 
			
		||||
        entry: pylint
 | 
			
		||||
        language: system
 | 
			
		||||
        types: [python]
 | 
			
		||||
        args: [
 | 
			
		||||
            '-rn', # Only display messages
 | 
			
		||||
            '-sn', # Don't display the score
 | 
			
		||||
            '--disable=C,R,W0511', # Disable C and R type messages, and TODO fixme warning
 | 
			
		||||
          ]
 | 
			
		||||
  # TODO add https://pre-commit.com/#docker hook for bash linting
 | 
			
		||||
@ -0,0 +1 @@
 | 
			
		||||
import dramatiq
 | 
			
		||||
@ -1 +1 @@
 | 
			
		||||
dramatiq[all]
 | 
			
		||||
dramatiq[all]
 | 
			
		||||
 | 
			
		||||
					Loading…
					
					
				
		Reference in New Issue