Skip to content

Commit 9e8d900

Browse files
committed
updated pre-commit
1 parent 0e7df0f commit 9e8d900

File tree

2 files changed

+41
-29
lines changed

2 files changed

+41
-29
lines changed

.pre-commit-config.yaml

+40-28
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,47 @@
11
ci:
2-
autoupdate_schedule: 'monthly'
2+
autoupdate_schedule: 'monthly'
33

44
repos:
5-
- repo: https://github.com/astral-sh/ruff-pre-commit
6-
# Ruff version.
7-
rev: v0.8.1
8-
hooks:
9-
# Run the linter.
10-
- id: ruff
11-
types_or: [ python, pyi, jupyter ]
12-
args: [ --fix ]
13-
# Run the formatter.
14-
- id: ruff-format
15-
types_or: [ python, pyi, jupyter ]
16-
- repo: https://github.com/asottile/pyupgrade
5+
- repo: https://github.com/astral-sh/ruff-pre-commit
6+
rev: v0.8.1
7+
hooks:
8+
# Run the linter.
9+
- id: ruff
10+
types_or: [ python, pyi, jupyter ]
11+
args: [ --fix ]
12+
# Run the formatter.
13+
- id: ruff-format
14+
types_or: [ python, pyi, jupyter ]
15+
16+
- repo: https://github.com/asottile/pyupgrade
1717
rev: v3.19.0
1818
hooks:
19-
- id: pyupgrade
20-
args: [--py311-plus]
21-
- repo: https://github.com/pre-commit/pre-commit-hooks
19+
- id: pyupgrade
20+
args: [ --py311-plus ]
21+
22+
- repo: https://github.com/pre-commit/pre-commit-hooks
2223
rev: v5.0.0 # Use the ref you want to point at
2324
hooks:
24-
- id: trailing-whitespace
25-
- id: check-toml
26-
- id: check-yaml
27-
- repo: https://github.com/codespell-project/codespell
28-
rev: v2.3.0
29-
hooks:
30-
- id: codespell
31-
args: [
32-
"--ignore-words",
33-
".codespellignore",
34-
]
35-
exclude: .vale/styles/Microsoft/Avoid.yml
25+
- id: trailing-whitespace
26+
- id: check-toml
27+
- id: check-yaml
28+
29+
- repo: https://github.com/codespell-project/codespell
30+
rev: v2.3.0
31+
hooks:
32+
- id: codespell
33+
args:
34+
- "--ignore-words"
35+
- ".codespellignore"
36+
exclude: .vale/styles/Microsoft/Avoid.yml
37+
38+
- repo: https://github.com/errata-ai/vale
39+
rev: v3.9.1 # Use the version of Vale you want
40+
hooks:
41+
- id: vale
42+
name: Vale
43+
entry: vale
44+
language: docker
45+
types: [file]
46+
files: \.(md|txt|rst)$ # Adjust file extensions as needed
47+

testing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
###Summary
2-
Checking if vale reacts to the use of the term agent.
2+
Checking if vale reacts to the use of the term agent in md files.

0 commit comments

Comments
 (0)