-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (31 loc) · 1022 Bytes
/
.pre-commit-config.yaml
File metadata and controls
32 lines (31 loc) · 1022 Bytes
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
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: MIT License
#
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
# Use the config file specific to each subproject so that each
# project can specify its own first/third-party packages.
args: ["--resolve-all-configs"]
files: ^(.*)
types_or: [python, cython, pyi]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
files: ^(.*)
# Explicitly specify the pyproject.toml at the repo root, not per-project.
args: ["--config", "pyproject.toml", "--target-version", "py310"]
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
args: ["--config=.flake8"]
files: .*$
types: [file]
types_or: [python]
additional_dependencies: ["flake8-force"]
default_language_version:
python: python3