From 63f1433517f42fe247300528cdc7d248021f67b2 Mon Sep 17 00:00:00 2001 From: Michaela Ockova Date: Mon, 3 Feb 2020 20:02:29 +0100 Subject: [PATCH] Instal pre-commit --- .pre-commit-config.yaml | 1 - .travis.yml | 5 ++++- setup.py | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 57759a7..bad7ef9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,6 @@ repos: rev: 19.10b0 hooks: - id: black - language_version: python3.7 - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.4.0 hooks: diff --git a/.travis.yml b/.travis.yml index 92300b8..94fc919 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,9 @@ python: #cache: pip -install: "pip install Cython && pip install ." +install: "pip install . pre-commit" + +# python-requires? #jobs: # include: @@ -28,4 +30,5 @@ before_script: # configure a headless display for testing plot generation - "export DISPLAY=:99.0" script: + - pre-commit run --all-files - nosetests . diff --git a/setup.py b/setup.py index a1c70c3..7ae9687 100644 --- a/setup.py +++ b/setup.py @@ -36,6 +36,7 @@ "networkx==1.11", "pyshp", "smopy", + "Cython", "nose", "six", "geoindex",