Skip to content

Commit

Permalink
Run automated fixes on Pull Request
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Jan 22, 2024
1 parent 2ff0db2 commit 98c6780
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
File renamed without changes.
39 changes: 39 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
repos:
# Various useful generic autofixes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: check-case-conflict
- id: check-merge-conflict
# For Markdown, JSON and YAML
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
- id: prettier
# For Python
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.14"
hooks:
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format
# Custom generator
- repo: local
hooks:
- id: generate_alternate_assets
name: Generate Alternate Assets
language: system
entry: python "#DefaultDevices/generate_alternate_assets.py"
# files: "^#DefaultDevices/" # TODO: only run when images are modified
pass_filenames: false

ci:
autoupdate_branch: main
autoupdate_schedule: monthly

0 comments on commit 98c6780

Please sign in to comment.