The template for `.pre-commit-config.yaml` has been updated
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 70/100
調査の方向性
.pre-commit-config.yaml から始め、リンク先の templates/.pre-commit-config.yaml の diff と比較して、ordering、ruff、sort-all の変更のうち、このリポジトリに適合するものを確認します。適切な設定の更新を適用し、結果の pre-commit 設定を検証するか、適合する変更がない場合は issue をクローズします。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Jupyter Notebook
- スター
- 30
- フォーク
- 19
- 平均マージ
- 9日 1時間
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SciTools/python-stratify のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
SciTools/python-stratify#437 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SciTools/python-stratify#430 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
SciTools/python-stratify#427 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
SciTools/python-stratify#277 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
SciTools/python-stratify#111 · コメント 3 件 · リアクション 2 件 ·
SciTools/python-stratify の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
0xMiden/bridge-portal#132 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
newrelic-experimental/preflight#793 · コメント 1 件 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
babalae/bettergi-scripts-list#3674 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
caddyserver/caddy#8046 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
zilliztech/memsearch#759 ·