[meld/precommit: 11/11] Use pre-commit in CI



commit 96336b37a3067ed8a248725b57b05cf1ed059d7f
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Oct 6 08:00:09 2019 +1000

    Use pre-commit in CI

 .gitlab-ci.yml       | 4 ++--
 dev-requirements.txt | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5d64e1ec..0ed7dfe5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,11 +19,11 @@ variables:
     - dnf update -y
     - dnf install -y $DEPENDENCIES
 
-flake8:
+lint:
   stage: check
   script:
     - pip3 install -r dev-requirements.txt
-    - flake8 bin/meld meld/
+    - pre-commit run --all-files
   allow_failure: true
   <<: *linux-common
 
diff --git a/dev-requirements.txt b/dev-requirements.txt
index 079260e3..166923de 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -2,5 +2,6 @@ flake8==3.7.5
 flake8-isort==2.7.0
 mccabe==0.6.1
 pep8-naming==0.4.1
+pre-commit==1.18.3
 pycodestyle==2.5.0
 pyflakes==2.1.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]