[flake8] action
This commit is contained in:
		
							parent
							
								
									2032f96247
								
							
						
					
					
						commit
						c41620a02f
					
				
					 2 changed files with 20 additions and 10 deletions
				
			
		
							
								
								
									
										10
									
								
								.github/workflows/black.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/black.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -1,10 +0,0 @@
 | 
				
			||||||
name: Lint
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
on: [push, pull_request]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
jobs:
 | 
					 | 
				
			||||||
  lint:
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
    steps:
 | 
					 | 
				
			||||||
      - uses: actions/checkout@v3
 | 
					 | 
				
			||||||
      - uses: psf/black@stable
 | 
					 | 
				
			||||||
							
								
								
									
										20
									
								
								.github/workflows/python.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/python.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,20 @@
 | 
				
			||||||
 | 
					name: Python lint and test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on: [push, pull_request]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  lint:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
 | 
					      - uses: actions/setup-python@v5
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          python-version: '3.12'
 | 
				
			||||||
 | 
					      - name: Install dependencies
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          python -m pip install --upgrade pip
 | 
				
			||||||
 | 
					          pip install -r requirements_local.txt
 | 
				
			||||||
 | 
					      - name: Run black
 | 
				
			||||||
 | 
					        run: black --check fooder
 | 
				
			||||||
 | 
					      - name: Run flake8
 | 
				
			||||||
 | 
					        run: flake8 fooder
 | 
				
			||||||
		Loading…
	
		Reference in a new issue