The template for `.pre-commit-config.yaml` has been updated
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 70/100
Hướng nghiên cứu
Bắt đầu với .pre-commit-config.yaml và so sánh nó với diff được liên kết của templates/.pre-commit-config.yaml, kiểm tra những thay đổi nào về ordering, ruff và sort-all phù hợp với repository này. Áp dụng các cập nhật cấu hình phù hợp và xác minh cấu hình pre-commit sau đó, hoặc đóng issue nếu không có thay đổi nào phù hợp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Templating
The template for .pre-commit-config.yaml has been updated; see the diff below. Please either:
- Action this issue with a pull request applying some/all of these changes to
.pre-commit-config.yaml[^1]. - Close this issue if none of these changes are appropriate for this repo.
Also consider reviewing a full diff between the template and .pre-commit-config.yaml, in case other valuable shared conventions have previously been missed.
File Links
- The file in this repo:
.pre-commit-config.yaml - The template file in the .github repo:
templates/.pre-commit-config.yaml
Diff
diff --git a/templates/.pre-commit-config.yaml b/templates/.pre-commit-config.yaml
index 35f2ab2..2acfb31 100644
--- a/templates/.pre-commit-config.yaml
+++ b/templates/.pre-commit-config.yaml
@@ -58,7 +58,7 @@ repos:
- id: trailing-whitespace
# Hooks from all other repos
-# NOTE : keep these in hook-name (aka 'id') order
+# In terms of ordering: hooks that modify files should be placed before hooks that do not.
- repo: https://github.com/adamchainz/blacken-docs
# This template does not keep up-to-date with versions, visit the repo to see the most recent release.
@@ -67,6 +67,23 @@ repos:
- id: blacken-docs
types: [file, rst]
+- repo: https://github.com/astral-sh/ruff-pre-commit
+ # This template does not keep up-to-date with versions, visit the repo to see the most recent release.
+ rev: "v0.7.4"
+ hooks:
+ - id: ruff-check
+ types: [file, python]
+ args: [--fix, --show-fixes]
+ - id: ruff-format
+ types: [file, python]
+
+- repo: https://github.com/aio-libs/sort-all
+ # This template does not keep up-to-date with versions, visit the repo to see the most recent release.
+ rev: v1.3.0
+ hooks:
+ - id: sort-all
+ types: [file, python]
+
- repo: https://github.com/codespell-project/codespell
# This template does not keep up-to-date with versions, visit the repo to see the most recent release.
rev: "v2.3.0"
@@ -89,23 +106,6 @@ repos:
- id: numpydoc-validation
types: [file, python]
-- repo: https://github.com/astral-sh/ruff-pre-commit
- # This template does not keep up-to-date with versions, visit the repo to see the most recent release.
- rev: "v0.7.4"
- hooks:
- - id: ruff-check
- types: [file, python]
- args: [--fix, --show-fixes]
- - id: ruff-format
- types: [file, python]
-
-- repo: https://github.com/aio-libs/sort-all
- # This template does not keep up-to-date with versions, visit the repo to see the most recent release.
- rev: v1.3.0
- hooks:
- - id: sort-all
- types: [file, python]
-
- repo: https://github.com/scientific-python/cookie
# This template does not keep up-to-date with versions, visit the repo to see the most recent release.
rev: 2024.08.19
@@ -126,4 +126,3 @@ repos:
rev: v1.25.2
hooks:
- id: zizmor
-
[^1]: Include this text in the PR body to avoid any prompts about applying your changes back to the template!
@scitools-templating: please no share prompt
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 30
- Fork
- 19
- Merge trung bình
- 9 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của SciTools/python-stratify
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
SciTools/python-stratify#437 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
SciTools/python-stratify#430 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
SciTools/python-stratify#427 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
SciTools/python-stratify#277 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
SciTools/python-stratify#111 · 3 bình luận · 2 reaction ·
Tất cả issue của SciTools/python-stratify
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
0xMiden/bridge-portal#132 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
newrelic-experimental/preflight#793 · 1 bình luận ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
babalae/bettergi-scripts-list#3674 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
caddyserver/caddy#8046 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
zilliztech/memsearch#759 ·