mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Merge pull request #1431 from SchrodingersGat/workflows
Add code style workflow
This commit is contained in:
		
							
								
								
									
										25
									
								
								.github/workflows/style.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/style.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| name: Style Checks | ||||
|  | ||||
| on: push | ||||
|  | ||||
| jobs: | ||||
|   pep: | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     strategy: | ||||
|       max-parallel: 4 | ||||
|       matrix: | ||||
|         python-version: [3.7] | ||||
|  | ||||
|     steps: | ||||
|       - name: Checkout code | ||||
|         uses: actions/checkout@v2 | ||||
|       - name: Set up Python ${{ matrix.python-version }} | ||||
|         uses: actions/setup-python@v2 | ||||
|         with: | ||||
|           python-version: ${{ matrix.python-version }} | ||||
|       - name: Install deps | ||||
|         run: | | ||||
|           pip install flake8==3.8.3 | ||||
|           pip install pep8-naming==0.11.1 | ||||
|           flake8 InvenTree | ||||
		Reference in New Issue
	
	Block a user