sudo: false
language: python

cache: pip

python:
  - "3.6"

services:
  - postgresql

addons:
  postgresql: "9.6"
  apt:
    packages:
      - postgresql-9.6-postgis-2.4
      - binutils
      - libproj-dev
      - gdal-bin

before_script:
  - psql -U postgres -c "create extension postgis"
  - psql template1 -c 'create extension hstore;'

install:
  - pip install -r requirements.txt

script:
  - flake8
  - pytest --cov=. --hypothesis-profile=ci

after_success:
  - curl -s https://codecov.io/bash | bash

sudo: false
language: python

cache: pip

python:
  - "3.6"

services:
  - postgresql

addons:
  postgresql: "9.6"
  apt:
    packages:
      - postgresql-9.6-postgis-2.4
      - binutils
      - libproj-dev
      - gdal-bin

before_script:
  - psql -U postgres -c "create extension postgis"
  - psql template1 -c 'create extension hstore;'

install:
  - pip install -r requirements.txt

script:
  - flake8
  - black --check .
  - isort -c
  - pytest --cov=. --hypothesis-profile=ci

after_success:
  - curl -s https://codecov.io/bash | bash

Add black and isort to Travis-build
Add black and isort to Travis-build

Add black- and isort-checks to Travis-build scripts
