mirror of
				https://github.com/cookiecutter/cookiecutter-django.git
				synced 2025-11-04 01:47:28 +03:00 
			
		
		
		
	Updated the github action to run all pre-commit hooks on all files in the linter stage so that there is only 1 place that is used to maange all code quality tools.
This commit is contained in:
		
							parent
							
								
									499b60ce7f
								
							
						
					
					
						commit
						a4f1acf17e
					
				| 
						 | 
				
			
			@ -16,7 +16,7 @@ on:
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  flake8:
 | 
			
		||||
  linter:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -28,13 +28,13 @@ jobs:
 | 
			
		|||
        with:
 | 
			
		||||
          python-version: 3.8
 | 
			
		||||
 | 
			
		||||
      - name: Install flake8
 | 
			
		||||
      - name: Install flake8, flake8-isort, and black
 | 
			
		||||
        run: |
 | 
			
		||||
          python -m pip install --upgrade pip
 | 
			
		||||
          pip install flake8
 | 
			
		||||
          pip install flake8 flake8-isort black
 | 
			
		||||
 | 
			
		||||
      - name: Lint with flake8
 | 
			
		||||
        run: flake8
 | 
			
		||||
      - name: Install and Run Pre-commit 
 | 
			
		||||
        uses: pre-commit/action@v2.0.0
 | 
			
		||||
 | 
			
		||||
# With no caching at all the entire ci process takes 4m 30s to complete!
 | 
			
		||||
  pytest:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user