Validate usage of double quotes in expressions
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
issue ではファイルもテストも指定されていません。まず、check-jsonschema の GitHub Actions ワークフロー検証のエントリーポイントを見つけ、式が現在どのように処理されているかを確認してください。完了の条件は、報告されている二重引用符の使用が検出され、警告または検証エラーとして通知されることです。
索引モデルが issue の本文から書いたものです。
説明
Motivation
We use check-jsonschema in https://github.com/Lightning-AI/lightning/ to validate all our workflow files and it works very well. We have a GitHub action for this check here.
Recently we debugged an issue in our configuration that wasn't caught by check-jsonschema. The following yaml had double quotes in the expression:
- name: Testing Warnings
# the stacklevel can only be set on >=3.7
if: ${{ (steps.skip.outputs.continue == '1') && ( matrix.python-version != "3.7" ) }}
working-directory: tests/tests_pytorch
# needs to run outside of `pytest`
run: python utilities/test_warnings.py
which caused an error in the workflow:
The workflow is not valid. .github/workflows/ci-pytorch-test-full.yml (Line: 167, Col: 11): Unexpected symbol: '"3'. Located at position 68 within expression: (steps.skip.outputs.continue == '1') && ( matrix.python-version != "3.7" )
And it should have used single quotes like this:
matrix.python-version != '3.7'
check-jsonschema is useful for us because we can raise these warnings directly to the author in the PR.
Pitch
Would it be possible to have check-jsonschema validate against correct usage of single quotes vs. double quotes? I am not familiar with how check-jsonschema works, whether this is technically possible, or whether this is in the scope of this tool at all.
- 主要言語
- Python
- スター
- 347
- フォーク
- 72
- 平均マージ
- 12時間 56分
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
python-jsonschema/check-jsonschema のほかの issue
-
Add `check-github-funding` pre-commit hook再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
Explore skipping the metaschema check for vendored schemas対応中かも @sirosen が 19 日前に担当しました。 オープン
python-jsonschema/check-jsonschema#723 · 担当者 1 名 ·
-
New vendored schemas: Datadog対応中かも @lannuttia が 73 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
Feature Request: Support URL rewrite再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
Support ETag for cache validation when Last-Modified is unavailable対応中かも @sirosen が 205 日前に担当しました。 オープンenhancement
python-jsonschema/check-jsonschema#668 · コメント 9 件 · 担当者 1 名 ·
python-jsonschema/check-jsonschema の issue をすべて見る
似ている issue
-
bug needs-triage priority:medium
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
yeongseon/azure-functions-logging-python#583 ·
メンテナーはふだん 1 日以内に返信
-
documentation needs-triage priority:medium
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
yeongseon/azure-functions-validation-python#546 ·
メンテナーはふだん 1 日以内に返信
-
PHP workflow streaming requests buffer the full SSE response対応中かも @Winoren が今日担当しました。 オープンreview: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
langgenius/dify#44270 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
P4: low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
jeffknupp/association#523 ·
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
DarkStarSystems/pcons#229 ·
メンテナーはふだん 1 日以内に返信