Update flake8 configurations

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2019-03-24 11:40:33 +09:00
parent 9802edd1b3
commit 20b0add0ec
4 changed files with 9 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ install:
- pip install wheel flake8 requests six - pip install wheel flake8 requests six
script: script:
- flake8 - flake8 aqt bin
- python -m aqt --help - python -m aqt --help
deploy: deploy:

View File

@@ -36,14 +36,15 @@ def main():
install_parser.add_argument('host', choices=['linux', 'mac', 'windows'], help="host os name") install_parser.add_argument('host', choices=['linux', 'mac', 'windows'], help="host os name")
install_parser.add_argument('target', choices=['desktop', 'android', 'ios'], help="target sdk") install_parser.add_argument('target', choices=['desktop', 'android', 'ios'], help="target sdk")
install_parser.add_argument('arch', nargs='?', help="\ntarget linux/desktop: gcc_64" install_parser.add_argument('arch', nargs='?', help="\ntarget linux/desktop: gcc_64"
"\ntarget mac/desktop: clang_64" "\ntarget mac/desktop: clang_64"
"\ntarget mac/ios: ios" "\ntarget mac/ios: ios"
"\nwindows/desktop: win64_msvc2017_64, win64_msvc2015_64" "\nwindows/desktop: win64_msvc2017_64, win64_msvc2015_64"
"\n in32_msvc2015, win32_mingw53" "\n in32_msvc2015, win32_mingw53"
"\nandroid: android_x86, android_armv7") "\nandroid: android_x86, android_armv7")
list_parser = subparsers.add_parser('list') list_parser = subparsers.add_parser('list')
list_parser.add_argument("qt_version", help="Qt version in the format of \"5.X.Y\"") list_parser.add_argument("qt_version", help="Qt version in the format of \"5.X.Y\"")
help_parser = subparsers.add_parser('help') help_parser = subparsers.add_parser('help')
help_parser.add_help("show help")
args = parser.parse_args() args = parser.parse_args()
arch = args.arch arch = args.arch
target = args.target target = args.target

View File

@@ -15,7 +15,7 @@ jobs:
- script: | - script: |
python -m pip install $(pydepends) python -m pip install $(pydepends)
python -m pip install flake8 twine wheel python -m pip install flake8 twine wheel
flake8 . flake8 aqt bin
displayName: 'Run lint tests' displayName: 'Run lint tests'
- script: | - script: |
sudo apt-get update sudo apt-get update

View File

@@ -1,5 +1,6 @@
[flake8] [flake8]
max-line-length = 125 max-line-length = 125
exclude = .git,__pycache__,docs/conf.py,build,dist,tmp,venv
[bdist_wheel] [bdist_wheel]
universal=1 universal=1