Skip to content

Commit c6d6aa1

Browse files
committed
add ruff pre-commit hook
1 parent 1aef555 commit c6d6aa1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ repos:
1212
rev: 'v1.15.0'
1313
hooks:
1414
- id: mypy
15-
- repo: https://github.com/PyCQA/flake8
16-
rev: 7.2.0
15+
- repo: https://github.com/astral-sh/ruff-pre-commit
16+
# Ruff version.
17+
rev: v0.12.4
1718
hooks:
18-
- id: flake8
19+
# Run the linter.
20+
- id: ruff-check
21+
entry: ruff check ncalab
22+
args: [--ignore=E402]

0 commit comments

Comments
 (0)