Try out a linting CI config

This commit is contained in:
Josh Klar 2018-09-14 17:22:51 -07:00
parent a7fbe280d0
commit de5fd701c6
No known key found for this signature in database
GPG Key ID: 220F99BD7DB7A99E

35
.circleci/config.yml Normal file
View File

@ -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: /.*/