Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Joakim Saario
aurweb
Commits
e865a634
Commit
e865a634
authored
Jun 05, 2021
by
Kevin Morris
Browse files
.gitlab-ci.yml: enforce isort and flake8 compliance
Signed-off-by:
Kevin Morris
<
kevr@0cost.org
>
parent
5ceeb88b
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e865a634
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment