Commit e865a634 authored by Kevin Morris's avatar Kevin Morris
Browse files

.gitlab-ci.yml: enforce isort and flake8 compliance


Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent 5ceeb88b
......@@ -19,6 +19,7 @@ before_script:
python-requests python-aiofiles python-python-multipart
python-pytest-asyncio python-coverage python-bcrypt
python-email-validator openssh python-lxml mariadb
python-isort flake8
- bash -c "echo '127.0.0.1' > /etc/hosts"
- bash -c "echo '::1' >> /etc/hosts"
- mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
......@@ -45,6 +46,12 @@ test:
- AUR_CONFIG=conf/config.sqlite make -C test pytest # pytest with sqlite.
- coverage report --include='aurweb/*'
- coverage xml --include='aurweb/*'
- flake8 --count aurweb # Assert no flake8 violations in aurweb.
- flake8 --count test # Assert no flake8 violations in test.
- flake8 --count migrations # Assert no flake8 violations in migrations.
- isort --check-only aurweb # Assert no isort violations in aurweb.
- isort --check-only test # Assert no flake8 violations in test.
- isort --check-only migrations # Assert no flake8 violations in migrations.
artifacts:
reports:
cobertura: coverage.xml
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment