Skip to content

Commit

Permalink
🎆 Introduce pre-commit (airbytehq#4005)
Browse files Browse the repository at this point in the history
* add pre-commit config

* replace spotless with prettier

Co-authored-by: Eugene Kulak <[email protected]>
  • Loading branch information
keu and eugene-kulak authored Jul 22, 2021
1 parent 5cdc7f8 commit 1fedca9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
args: ["--line-length=140"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: flake8
args: ["--config=tools/python/.flake8"]
- repo: https://github.com/timothycrosley/isort
rev: 4.3.21
hooks:
- id: isort
args: ["--settings-path=tools/python/.isort.cfg"]
- repo: https://github.com/johann-petrak/licenseheaders.git
rev: "master"
hooks:
- id: licenseheaders
args: ["--tmpl=LICENSE", "--ext=py", "-f"]
- repo: local
hooks:
- id: prettier
name: prettier
entry: tmknom/prettier:latest
language: docker_image
types: [json]
args: ["--parser=json", "--write"]

0 comments on commit 1fedca9

Please sign in to comment.