スキル一覧に戻る
Bedriftsgrafen

safe-push

by Bedriftsgrafen

Full-stack business intelligence platform tracking 1.1M+ Norwegian companies with real-time analytics | React 19 | FastAPI | PostgreSQL

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: Safe Push description: Validates code locally before pushing to prevent CI failures.

Safe Push Skill

Purpose

To ensure that code is validated locally before being pushed, preventing "hook fatigue" and server overload.

1. Local Validation (MANDATORY)

Before committing/pushing, you MUST validate your changes locally.

If modifying Backend (backend/):

# 1. Format code
backend/.venv/bin/ruff format backend

# 2. Check types and lint
backend/.venv/bin/ruff check backend --fix
backend/.venv/bin/mypy backend

# 3. Run relevant tests (do not rely on pre-push hook for this!)
backend/.venv/bin/pytest backend/tests/unit/<path_to_relevant_test>.py

If modifying Frontend (frontend/):

cd frontend

# 1. Full validation (Types + Lint)
npm run validate

# 2. Run relevant tests
npm test <path_to_relevant_test>

2. Incremental Push Strategy

CRITICAL: The pre-push hook runs the entire test suite. Pushing many commits at once creates multiple heavy jobs.

  1. Check commits to be pushed:

    git log --oneline origin/main..HEAD
    
  2. Push ONE by ONE:

    git push origin <oldest_commit_hash>:main
    

    Wait for the hook to pass successfully. Repeat until all commits are pushed.

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です