Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update .pre-commit-config.yaml
Browse files- .pre-commit-config.yaml +3 -26
.pre-commit-config.yaml
CHANGED
|
@@ -1,25 +1,3 @@
|
|
| 1 |
-
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
|
| 2 |
-
#
|
| 3 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
-
# you may not use this file except in compliance with the License.
|
| 5 |
-
# You may obtain a copy of the License at
|
| 6 |
-
#
|
| 7 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
-
#
|
| 9 |
-
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
-
# See the License for the specific language governing permissions and
|
| 13 |
-
# limitations under the License.
|
| 14 |
-
|
| 15 |
-
default_language_version:
|
| 16 |
-
python: python3
|
| 17 |
-
|
| 18 |
-
ci:
|
| 19 |
-
autofix_prs: true
|
| 20 |
-
autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions'
|
| 21 |
-
autoupdate_schedule: quarterly
|
| 22 |
-
|
| 23 |
repos:
|
| 24 |
- repo: https://github.com/pre-commit/pre-commit-hooks
|
| 25 |
rev: v5.0.0
|
|
@@ -28,7 +6,7 @@ repos:
|
|
| 28 |
- id: check-case-conflict
|
| 29 |
- id: detect-private-key
|
| 30 |
- id: check-added-large-files
|
| 31 |
-
args: [
|
| 32 |
- id: requirements-txt-fixer
|
| 33 |
- id: end-of-file-fixer
|
| 34 |
- id: trailing-whitespace
|
|
@@ -38,16 +16,15 @@ repos:
|
|
| 38 |
hooks:
|
| 39 |
- id: isort
|
| 40 |
name: Format imports
|
|
|
|
| 41 |
|
| 42 |
- repo: https://github.com/psf/black
|
| 43 |
rev: 24.10.0
|
| 44 |
hooks:
|
| 45 |
- id: black
|
| 46 |
name: Format code
|
| 47 |
-
additional_dependencies: ['click==8.0.2']
|
| 48 |
|
| 49 |
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
| 50 |
-
|
| 51 |
-
rev: 'v0.6.9'
|
| 52 |
hooks:
|
| 53 |
- id: ruff
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
repos:
|
| 2 |
- repo: https://github.com/pre-commit/pre-commit-hooks
|
| 3 |
rev: v5.0.0
|
|
|
|
| 6 |
- id: check-case-conflict
|
| 7 |
- id: detect-private-key
|
| 8 |
- id: check-added-large-files
|
| 9 |
+
args: ["--maxkb=1000"]
|
| 10 |
- id: requirements-txt-fixer
|
| 11 |
- id: end-of-file-fixer
|
| 12 |
- id: trailing-whitespace
|
|
|
|
| 16 |
hooks:
|
| 17 |
- id: isort
|
| 18 |
name: Format imports
|
| 19 |
+
args: ["--profile", "black"]
|
| 20 |
|
| 21 |
- repo: https://github.com/psf/black
|
| 22 |
rev: 24.10.0
|
| 23 |
hooks:
|
| 24 |
- id: black
|
| 25 |
name: Format code
|
|
|
|
| 26 |
|
| 27 |
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
| 28 |
+
rev: v0.7.2
|
|
|
|
| 29 |
hooks:
|
| 30 |
- id: ruff
|