Skip to content

Commit

Permalink
Tools: Add pre-commit with black and xmllint
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-fuoco authored and Ryanf55 committed Jul 20, 2023
1 parent d11607c commit a98faa9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
name: Check line ending character (LF)
args: ["--fix=lf"]
- id: check-added-large-files
- id: check-merge-conflict
- id: check-xml
- id: check-yaml

- repo: https://github.com/lsst-ts/pre-commit-xmllint
rev: v1.0.0
hooks:
- id: format-xmllint

- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black

0 comments on commit a98faa9

Please sign in to comment.