Skip to content

Commit

Permalink
Create .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Jul 5, 2024
1 parent dd43341 commit b5b2611
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: mixed-line-ending
args: [--fix=lf]
- id: check-case-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
hooks:
- id: ruff
args: [
"--exit-non-zero-on-fix",
"--fix",
"--config", "editing/pyproject.toml",
]
- id: ruff-format
args: ["--config", "editing/pyproject.toml"]

ci:
autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit.com hooks"
autofix_prs: true
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
autoupdate_schedule: weekly
submodules: false

0 comments on commit b5b2611

Please sign in to comment.