From 5f70ca9190470443e20b8dda9adceb8327dc16f0 Mon Sep 17 00:00:00 2001 From: JoeBanks13 Date: Sat, 3 Feb 2018 13:30:21 +0000 Subject: Add circleci --- .circleci/config.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..575962cd --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,33 @@ +# Python CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-python/ for more details +# +version: 2 +jobs: + build: + docker: + # specify the version you desire here + # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers` + - image: circleci/python:3.6.1 + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + working_directory: ~/repo + + steps: + - checkout + - run: + name: install dependencies + command: | + python3 -m venv venv + . venv/bin/activate + pip install -r requirements.txt + pip install snekchek yapf flake8 isort + - run: + name: lint code + command: | + snekchek + \ No newline at end of file -- cgit v1.2.3