added flake8 testing for travis-ci

This commit is contained in:
Rob Weber 2019-10-10 14:59:13 -05:00
parent def99767e8
commit d32620ea18
2 changed files with 4 additions and 5 deletions

View File

@ -3,11 +3,12 @@ language: python
python: 3.7
install:
- pip install kodi-addon-checker
- pip install flake8 kodi-addon-checker
before_script:
- git config core.quotepath false
# command to run our tests
script:
- flake8 ./ --statistics --show-source --ignore=E501 --exclude=croniter.py,dropbox/* # check python structure against flake8 tests, ignore long lines
- kodi-addon-checker --branch=leia --allow-folder-id-mismatch

View File

@ -9,9 +9,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Added
- added new badges for Kodi Version, TravisCI and license information from shields.io
### Added
- use kodi-six for Kodi library imports, will make transition to python 3 easiser
### Changed
@ -19,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- addon.xml updated to use Leia specific syntax and library imports
- removed specific encode() calls per Python2/3 compatibility
- call isdigit() method on the string directly instead of str.isdigit() (results in unicode error)
- added flake8 testing to travis-ci
### Removed