mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-23 18:21:42 +08:00
Lint the integration tests with Python 3
The integration tests under 'tests/integration' are Python 3 only. Flake8 will fail on Python 3 syntax when running under Python 2, but for now we wouldn't like to change this, in order to keep Python 2 compatibility of the code base. To work around the above, set up a separate tox environment to lint the integration tests, and exclude linting the integration tests when the rest of the code is checked. Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
This commit is contained in:
@@ -22,4 +22,4 @@ sed -i \
|
||||
|
||||
# Since tox seems to ignore `usedevelop` when we have `sitepackages` on, we have to run it manually
|
||||
python3 setup.py develop --no-deps
|
||||
/usr/bin/tox -e flake8,py3 "$@"
|
||||
/usr/bin/tox -e flake8,py3,intflake "$@"
|
||||
|
||||
Reference in New Issue
Block a user