-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
41 lines (38 loc) · 1023 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright cocotb contributors
# Licensed under the Revised BSD License, see LICENSE for details.
# SPDX-License-Identifier: BSD-3-Clause
exclude: "tests/testdata/appconfig/invalid_config/user/config.toml"
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.6
hooks:
# Run the formatter.
- id: ruff-format
# Run the linter.
- id: ruff
args: [ --fix ]
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.5.0"
hooks:
- id: "check-added-large-files"
- id: "check-merge-conflict"
- id: "check-shebang-scripts-are-executable"
- id: "check-toml"
- id: "check-yaml"
- id: "debug-statements"
- id: "end-of-file-fixer"
exclude: "docs/images/.*"
- id: "trailing-whitespace"
- id: "mixed-line-ending"
args:
- "--fix=lf"
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
args:
- "--write-changes"
additional_dependencies:
- tomli
exclude: '^pdm\.lock$'