Merge pull request #10 from klardotsh/topic-integrate-circle

Basic CircleCI setup: Lint the codebase on all inbound PRs
This commit is contained in:
Josh Klar 2018-09-16 00:17:15 -07:00 committed by GitHub
commit c5f87fae74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 1 deletions

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

View File

@ -1,5 +1,5 @@
[flake8]
exclude = .git,__pycache__,vendor
exclude = .git,__pycache__,vendor,.venv
max_line_length = 99
[isort]