Skip to content

Commit 9bb0dff

Browse files
committed
Pre-commit configuration.
1 parent d0c6901 commit 9bb0dff

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-FileCopyrightText: ASSUME Developers
2+
#
3+
# SPDX-License-Identifier: AGPL-3.0-or-later
4+
5+
repos:
6+
- repo: https://github.com/astral-sh/ruff-pre-commit
7+
# Ruff version.
8+
rev: v0.9.5
9+
hooks:
10+
# Run the linter.
11+
- id: ruff
12+
args: [ --fix ]
13+
# Run the formatter.
14+
- id: ruff-format
15+
- repo: https://github.com/pre-commit/pre-commit-hooks
16+
rev: v5.0.0
17+
hooks:
18+
- id: end-of-file-fixer
19+
- id: trailing-whitespace

0 commit comments

Comments
 (0)