From e913b8e1401a4d448a332120137207c85d12f75a Mon Sep 17 00:00:00 2001
From: Maeva Pourpoint <maeva@passcal.nmt.edu>
Date: Wed, 9 Sep 2020 16:15:10 -0600
Subject: [PATCH] Update tox.ini and .gitlab-ci.yml to test formatting updates

---
 .gitlab-ci.yml | 8 ++++++++
 tox.ini        | 7 ++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1bc87f1..98ff46b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,6 +20,14 @@ stages:
 before_script:
 - pip install -e .[dev]
 
+linting:
+  image: python:3.6
+  tags:
+  - passoft
+  stage: test
+  script:
+  - flake8 --ignore=F403,F405,F821,F841,W504 fixhdr
+
 python3.6:
   image: python:3.6
   tags:
diff --git a/tox.ini b/tox.ini
index bf6c072..dfe02e1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,10 @@
 [tox]
-envlist = py36, py37, py38
+envlist = py36, py37, py38, flake8
+
+[testenv:flake8]
+basepython = python
+deps = flake8
+commands = flake8 --ignore=F403,F405,F821,F841,W504 fixhdr
 
 [testenv]
 commands = python -m unittest
-- 
GitLab