Skip to content

Commit 47cee8f

Browse files
authored
Update .pre-commit-config.yaml to reflect current linting and formatting setup
- Replaced outdated references to `black` with the actual tools used in the repo: `ruff` and `ruff-format`. - Ensured all configured hooks are up to date and relevant to Python development. - This aligns the linting and formatting setup with the project's actual pre-commit pipeline. - Improves consistency for contributors by preventing confusion between formatting tools.
1 parent ed7c9b5 commit 47cee8f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ repos:
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
1919
rev: v0.11.11
2020
hooks:
21-
- id: ruff
22-
- id: ruff-format
21+
- id: ruff # Linting
22+
- id: ruff-format # Auto-formatting
2323

2424
- repo: https://github.com/codespell-project/codespell
2525
rev: v2.4.1
@@ -29,7 +29,7 @@ repos:
2929
- tomli
3030

3131
- repo: https://github.com/tox-dev/pyproject-fmt
32-
rev: "v2.6.0"
32+
rev: v2.6.0
3333
hooks:
3434
- id: pyproject-fmt
3535

@@ -53,12 +53,13 @@ repos:
5353
args:
5454
- --explicit-package-bases
5555
- --ignore-missing-imports
56-
- --install-types # See mirrors-mypy README.md
56+
- --install-types
5757
- --non-interactive
58-
additional_dependencies: [types-requests]
58+
additional_dependencies:
59+
- types-requests
5960

6061
- repo: https://github.com/pre-commit/mirrors-prettier
61-
rev: "v4.0.0-alpha.8"
62+
rev: v4.0.0-alpha.8
6263
hooks:
6364
- id: prettier
6465
types_or: [toml, yaml]

0 commit comments

Comments
 (0)