Skip to content

Commit

Permalink
Add pre-commit hook and travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-klode committed Aug 21, 2019
1 parent ebbbd8c commit c2b821e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
repos:
- repo: https://github.com/ambv/black
rev: 19.3b0
hooks:
- id: black

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: flake8
args: [--max-line-length=120]
- id: check-executables-have-shebangs
- id: check-merge-conflict

- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort

- repo: https://github.com/asottile/pyupgrade
rev: v1.22.1
hooks:
- id: pyupgrade
args: [--py36-plus]
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dist: bionic
language: python
install:
- pip install pre-commit
jobs:
include:
- name: pre-commit
script:
- pre-commit run -a

0 comments on commit c2b821e

Please sign in to comment.