Improve `format`, `lint`, and `test` commands to make pre-commit setup simple and more efficient

オープン
#6,020 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python, sql
領域
cli, tooling

調査の方向性

Start by reading the sqlmesh format, sqlmesh lint, and sqlmesh test command entry points; the issue does not name specific files or tests. Check how each command handles file arguments and how the example pre-commit hooks invoke them. Done means all three commands accept filenames so pre-commit runs can be incremental.

索引モデルが issue の本文から書いたものです。

説明

Improvement

Parent issue for 5 improvements to empower pre-commits using sqlmesh

sqlmesh format already takes multiple file paths and can intake filenames.

Goal is to have a simple pre-commit be efficient:

repos:
  - repo: local
    hooks:
      - id: sqlmesh-format
        name: sqlmesh format
        entry: sqlmesh format
        language: system
        files: '^(models|audits)/.*\.sql$'
      - id: sqlmesh-lint
        name: sqlmesh lint
        entry: sqlmesh lint --local --use-project-index
        language: system
        files: '^models/.*\.(sql|py)$'
      - id: sqlmesh-test
        name: sqlmesh test
        entry: sqlmesh test --local --use-project-index
        language: system
        files: '^(models/.*\.(sql|py)|tests/.*\.(yaml|yml))$'

To have each command intake filenames for incremental and efficient pre-commits

主要言語
Python
スター
3.3k
フォーク
471
平均マージ
6日 7時間
マージ済み PR(30日)
35

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SQLMesh/sqlmesh のほかの issue

SQLMesh/sqlmesh の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。