mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-24 13:31:07 +00:00
5b86928c4b
* Travis CI: Add more flake8 tests * Use ==/!= to compare str, bytes, and int literals ./project_euler/problem_17/sol1.py:25:7: F632 use ==/!= to compare str, bytes, and int literals if i%100 is not 0: ^ * Use ==/!= to compare str, bytes, and int literals * Update sol1.py
27 lines
845 B
YAML
27 lines
845 B
YAML
language: python
|
|
cache: pip
|
|
python:
|
|
- 2.7
|
|
- 3.6
|
|
#- nightly
|
|
#- pypy
|
|
#- pypy3
|
|
matrix:
|
|
allow_failures:
|
|
- python: nightly
|
|
- python: pypy
|
|
- python: pypy3
|
|
install:
|
|
#- pip install -r requirements.txt
|
|
- pip install flake8 # pytest # add another testing frameworks later
|
|
before_script:
|
|
# stop the build if there are Python syntax errors or undefined names
|
|
- flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
|
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
script:
|
|
- true # pytest --capture=sys # add other tests here
|
|
notifications:
|
|
on_success: change
|
|
on_failure: change # `always` will be the setting once code changes slow down
|