commit
85f849e187
2 changed files with 40 additions and 0 deletions
16
.github/workflows/kivy_ios.yml
vendored
16
.github/workflows/kivy_ios.yml
vendored
|
@ -3,6 +3,22 @@ name: kivy-ios
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
flake8:
|
||||||
|
name: Flake8 tests
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout kivy-ios
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v1.1.0
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
- name: Run flake8
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install tox>=2.0
|
||||||
|
tox -e pep8
|
||||||
|
|
||||||
build_updated_recipes:
|
build_updated_recipes:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
24
tox.ini
Normal file
24
tox.ini
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
[tox]
|
||||||
|
skipsdist = True
|
||||||
|
envlist = pep8
|
||||||
|
basepython = python3
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
deps = -r{toxinidir}/requirements.txt
|
||||||
|
setenv =
|
||||||
|
PYTHONPATH={toxinidir}
|
||||||
|
|
||||||
|
[testenv:pep8]
|
||||||
|
deps = flake8
|
||||||
|
commands = flake8 recipes/ tools/ tests/ .ci/ toolchain.py
|
||||||
|
|
||||||
|
[flake8]
|
||||||
|
ignore =
|
||||||
|
E123, # Closing bracket does not match indentation of opening bracket's line
|
||||||
|
E124, # Closing bracket does not match visual indentation
|
||||||
|
E126, # Continuation line over-indented for hanging indent
|
||||||
|
E226, # Missing whitespace around arithmetic operator
|
||||||
|
E402, # Module level import not at top of file
|
||||||
|
E501, # Line too long (82 > 79 characters)
|
||||||
|
W503, # Line break occurred before a binary operator
|
||||||
|
W504 # Line break occurred after a binary operator
|
Loading…
Reference in a new issue