Skip to content

Commit

Permalink
chore: pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
leehanchung committed Nov 26, 2023
1 parent d024206 commit c9e11b4
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
fail_fast: true

default_language_version:
python: python3.10

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args:
- --unsafe
- id: check-added-large-files
args: ['--maxkb=50000']
- id: check-xml
- id: check-toml
- id: check-json
- id: check-merge-conflict
- id: debug-statements
- id: fix-byte-order-marker

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.14
hooks:
- id: validate-pyproject

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.5
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
ci:
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate

0 comments on commit c9e11b4

Please sign in to comment.