mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	Use flake8 to look for syntax errors, undefined names
This commit is contained in:
		
							parent
							
								
									9eb5cd0b31
								
							
						
					
					
						commit
						fa7aafd4c7
					
				| 
						 | 
					@ -15,14 +15,17 @@ os:
 | 
				
			||||||
env:
 | 
					env:
 | 
				
			||||||
  - VIA=compile LC_ALL=en_US.ascii 
 | 
					  - VIA=compile LC_ALL=en_US.ascii 
 | 
				
			||||||
  - VIA=compile
 | 
					  - VIA=compile
 | 
				
			||||||
 | 
					  - VIA=flake8
 | 
				
			||||||
  #- VIA=pypi_nightly
 | 
					  #- VIA=pypi_nightly
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install:
 | 
					install:
 | 
				
			||||||
  - "./travis.sh"
 | 
					  - "./travis.sh"
 | 
				
			||||||
 | 
					  - pip install flake8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
script:
 | 
					script:
 | 
				
			||||||
  - "pip install pytest pytest-timeout"
 | 
					  - "pip install pytest pytest-timeout"
 | 
				
			||||||
  - if [[ "${VIA}" == "compile" ]]; then python -m pytest --tb=native spacy; fi
 | 
					  - if [[ "${VIA}" == "compile" ]]; then python -m pytest --tb=native spacy; fi
 | 
				
			||||||
 | 
					  - if [[ "${VIA}" == "flake8" ]]; then flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics; fi  
 | 
				
			||||||
  - if [[ "${VIA}" == "pypi_nightly" ]]; then python -m pytest --tb=native --models --en `python -c "import os.path; import spacy; print(os.path.abspath(os.path.dirname(spacy.__file__)))"`; fi
 | 
					  - if [[ "${VIA}" == "pypi_nightly" ]]; then python -m pytest --tb=native --models --en `python -c "import os.path; import spacy; print(os.path.abspath(os.path.dirname(spacy.__file__)))"`; fi
 | 
				
			||||||
  - if [[ "${VIA}" == "sdist" ]]; then python -m pytest --tb=native `python -c "import os.path; import spacy; print(os.path.abspath(os.path.dirname(spacy.__file__)))"`; fi
 | 
					  - if [[ "${VIA}" == "sdist" ]]; then python -m pytest --tb=native `python -c "import os.path; import spacy; print(os.path.abspath(os.path.dirname(spacy.__file__)))"`; fi
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user