summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin ! <just1602@riseup.net>2020-09-30 16:53:01 -0400
committerjelle van der Waa <jelle@vdwaa.nl>2020-11-11 22:23:29 +0100
commitfecd0557da60edcb9dc137004c530800b1afc9ef (patch)
tree0c0433ff69b9802543ccebf55c9d8fec971eb778
parent1c5215a7e9d664a661f576e587e1187c4eb3f99b (diff)
downloadarchweb-fecd0557da60edcb9dc137004c530800b1afc9ef.tar.gz
archweb-fecd0557da60edcb9dc137004c530800b1afc9ef.zip
Install and run flake8 on ci
-rw-r--r--.github/workflows/main.yml3
-rw-r--r--.gitlab-ci.yml3
-rw-r--r--.travis.yml3
3 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 2ae67b35..59a270a3 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -16,11 +16,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- pip install -r requirements.txt && pip install coveralls pylint
+ pip install -r requirements.txt && pip install coveralls pylint flake8
- name: Lint with pylint
run: |
pip install pylint
pylint devel main mirrors news packages releng templates todolists visualize *.py
+ flake8 devel main mirrors news packages releng templates todolists visualize *.py
- name: Run collectstatic
run: |
python manage.py collectstatic --noinput
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4a4600f2..5203ed2f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,13 +2,14 @@ image: archlinux/base
before_script:
- pacman -Syu --needed --noconfirm python-pip git
- - pip install pylint coverage
+ - pip install pylint coverage flake8
- pip install -r requirements.txt
- python manage.py collectstatic --noinput
lint:
script:
- pylint devel main mirrors news packages releng templates todolists visualize *.py
+ - flake8 devel main mirrors news packages releng templates todolists visualize *.py
# TODO: https://docs.gitlab.com/ee/ci/junit_test_reports.html
test:
diff --git a/.travis.yml b/.travis.yml
index 03bb6f46..e7abbadd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,12 +3,13 @@ language: python
python:
- "3.7"
cache: pip
-install: "pip install -r requirements.txt && pip install coveralls pylint"
+install: "pip install -r requirements.txt && pip install coveralls pylint flake8"
script:
- python manage.py collectstatic --noinput
- coverage run --rcfile .coveragerc manage.py test
- pylint devel main mirrors news packages releng templates todolists visualize *.py
+ - flake8 devel main mirrors news packages releng templates todolists visualize *.py
after_success:
- coveralls