From de5fd701c648ceb6dfac8cef75cd180a5d4ec7b1 Mon Sep 17 00:00:00 2001 From: Josh Klar Date: Fri, 14 Sep 2018 17:22:51 -0700 Subject: [PATCH 1/2] Try out a linting CI config --- .circleci/config.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..83edb4b --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,35 @@ +version: 2 +jobs: + lint: + docker: + - image: 'python:3.7' + + environment: + KMK_TEST: 1 + PIPENV_VENV_IN_PROJECT: 1 + + steps: + - checkout + - restore_cache: + keys: + - v1-kmk-lint-{{ checksum "Pipfile.lock" }} + + - run: pip install pipenv==2018.7.1 + - run: pipenv install --dev + - run: pipenv run flake8 + + - save_cache: + key: v1-kmk-lint-{{ checksum "Pipfile.lock" }} + paths: + - .venv + +workflows: + version: 2 + build-deploy: + jobs: + - lint: + filters: + branches: + only: /.*/ + tags: + only: /.*/ From 8a33a68553986d662e6df272fbd2edafcf961c35 Mon Sep 17 00:00:00 2001 From: Josh Klar Date: Fri, 14 Sep 2018 17:27:47 -0700 Subject: [PATCH 2/2] Do not lint the venv folder of disasters --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index fc463b5..76c6b0c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [flake8] -exclude = .git,__pycache__,vendor +exclude = .git,__pycache__,vendor,.venv max_line_length = 99 [isort]