Skip to content

Commit

Permalink
🎨 blacken code and clean up test-env install, introduce pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare committed Jun 3, 2020
1 parent fbee74c commit 9ef59cc
Show file tree
Hide file tree
Showing 11 changed files with 1,181 additions and 1,024 deletions.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
@@ -0,0 +1,18 @@
repos:
- repo: local
hooks:
- id: black
name: black
language: system
entry: black
types: [python]
- id: isort
name: isort
language: system
entry: isort -y
types: [python]
- id: flake8
name: flake8
language: system
entry: flake8
types: [python]
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -16,8 +16,10 @@ before_install:
- pip install -U pip
- pip install codecov
install:
- pip install ".[test]" .
- pip install -r requirements-dev.txt
- pip install -e .
script:
- pre-commit run -a
- klangbecken init -d $KLANGBECKEN_DATA
- coverage run --source=klangbecken -m unittest discover
- flake8
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://travis-ci.org/radiorabe/klangbecken.svg?branch=master)](https://travis-ci.org/radiorabe/klangbecken)
[![Coverage Status](https://codecov.io/gh/radiorabe/klangbecken/branch/master/graph/badge.svg)](https://codecov.io/gh/radiorabe/klangbecken)
[![Codestyle Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

## Description
This repo contains two parts of the RaBe-Klangbecken infrastructure:
Expand Down

0 comments on commit 9ef59cc

Please sign in to comment.