Skip to content

Commit

Permalink
updated pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sanika-n committed Dec 25, 2024
1 parent 0e7df0f commit 9e8d900
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 29 deletions.
68 changes: 40 additions & 28 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,47 @@
ci:
autoupdate_schedule: 'monthly'
autoupdate_schedule: 'monthly'

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.1
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/asottile/pyupgrade
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi, jupyter ]

- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
hooks:
- id: pyupgrade
args: [--py311-plus]
- repo: https://github.com/pre-commit/pre-commit-hooks
- id: pyupgrade
args: [ --py311-plus ]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # Use the ref you want to point at
hooks:
- id: trailing-whitespace
- id: check-toml
- id: check-yaml
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args: [
"--ignore-words",
".codespellignore",
]
exclude: .vale/styles/Microsoft/Avoid.yml
- id: trailing-whitespace
- id: check-toml
- id: check-yaml

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args:
- "--ignore-words"
- ".codespellignore"
exclude: .vale/styles/Microsoft/Avoid.yml

- repo: https://github.com/errata-ai/vale
rev: v3.9.1 # Use the version of Vale you want
hooks:
- id: vale
name: Vale
entry: vale
language: docker
types: [file]
files: \.(md|txt|rst)$ # Adjust file extensions as needed

2 changes: 1 addition & 1 deletion testing.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
###Summary
Checking if vale reacts to the use of the term agent.
Checking if vale reacts to the use of the term agent in md files.

0 comments on commit 9e8d900

Please sign in to comment.