From 60c613c694f52ff2a3f3bab2e1cd729dd916bdb1 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 | 3 ++- 2 files changed, 2 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..1df9b9c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ python: #cache: pip -install: "pip install Cython && pip install ." +install: "pip install . pre-commit" #jobs: # include: @@ -28,4 +28,5 @@ before_script: # configure a headless display for testing plot generation - "export DISPLAY=:99.0" script: + - pre-commit run --all-files - nosetests .