Skip to content

Commit

Permalink
add .pre-commit-hooks.yaml
Browse files Browse the repository at this point in the history
Includes ids for `pants-fmt` and `pants-lint`.
  • Loading branch information
rcuza committed Jun 11, 2021
1 parent 764b3b7 commit 4114f74
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- id: pants-fmt
name: pants fmt
always_run: false
description: runs ./pants fmt on python files
entry: ./pants --no-dynamic-ui fmt
language: system
pass_filenames: true
types: [file,python]
- id: pants-lint
name: pants lint
always_run: false
description: runs ./pants --no-dynamic-ui lint on python files
entry: ./pants lint
language: system
pass_filenames: true
types: [file,python]

0 comments on commit 4114f74

Please sign in to comment.