Skip to main content

A zero-dependency CI tool replacing multiple CI services.

Project description

ciforge

Sponsor PyPI License: MIT

ciforge is a zero-dependency CLI and GitHub Action that replaces 20 CI services with one robust tool. Run your complete CI pipeline 100% locally or natively within your actions, faster and with zero external dependencies.

Features

  • Code Quality: Intelligent linting and AST-based complexity analysis (cyclomatic complexity, long functions).
  • Test Coverage Analysis: Deep inspection of test coverage gaps.
  • Secret Detection: Catch hardcoded credentials before they reach your repository.
  • Config Validation: Native parsing and validation for JSON, YAML, ENV, TOML, and XML files.
  • PR Metrics & Velocity Tracking: Analyze pull request size, churn, and time span metrics.
  • Multi-Model AI Review: Integrates with OpenAI, Anthropic, or Ollama to find logic flaws and missing edge cases.
  • Localization Sync: Finds missing translation keys by comparing localization files against a base en.json.
  • Git Hooks Installer: Easily install pre-commit hooks to run ciforge before committing.
  • Auto-Generated Badges: Generate dynamic SVG badges reflecting repository health.
  • HTML Reports: Export beautiful standalone HTML reports.
  • Contributor Welcome Module: Automatically greet first-time contributors.
  • Auto-Fixer (--fix): Automatically resolves low-hanging issues like debug statements and bad formatting.
  • Custom Ignore Rules: Whitelist files and dummy secrets via .ciforge-ignore.
  • Auto-Changelog Generator: Generate CHANGELOG.md from git log using conventional commits.
  • Dead Code Detector: Find unreferenced functions and classes.
  • Deployment Health Check: Verify production deployments after CI runs.
  • Config Drift Detection: Detect out-of-sync environment files (e.g. .env.production vs .env.staging).
  • Architecture Diagram Generator: Auto-generate Mermaid dependency diagrams.
  • Auto PR Descriptions: Generate rich markdown PR descriptions from git diffs.
  • Mobile Config Linter: Catch errors in pubspec.yaml, build.gradle, and Podfile.

Installation

pip install ciforge-cli

Usage

Run locally and print to terminal:

ciforge --repo . --base-ref origin/main --format markdown --fail-on high

Generate a beautiful HTML dashboard:

ciforge --repo . --format html --badge

Run the auto-fixer:

ciforge --repo . --fix

Generate a CHANGELOG.md:

ciforge --repo . --changelog

Check for config drift:

ciforge --repo . --drift

Run deployment health check:

ciforge --repo . --deploy-check https://your-production-url.com

Generate architecture diagram:

ciforge --repo . --arch-diagram

Auto-generate PR description:

ciforge --repo . --pr-describe

Install local pre-commit hook (blocks bad commits):

ciforge --install-hook

GitHub Action Usage

Use ciforge directly in your workflows to comment on PRs and enforce standards:

steps:
  - uses: actions/checkout@v4
  - name: Run CI Forge
    uses: Tahiram32/ciforge@v2.0.0
    with:
      repo: '.'
      base-ref: 'origin/main'
      format: 'markdown'
      fail-on: 'high'
      post-comment: 'true'
      badge: 'true'
      openai-key: ${{ secrets.OPENAI_API_KEY }} # Optional: enables AI Reviewer

❤️ Sponsorship

ciforge is free and open source, and will always stay that way. If it saves you time or money by replacing paid CI services, consider sponsoring its continued development!

Sponsor ciforge

Every sponsor helps fund:

  • 🚀 New features and integrations
  • 🐛 Bug fixes and maintenance
  • 📖 Documentation and examples
  • 🔒 Security research and improvements

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ciforge_cli-2.0.0.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ciforge_cli-2.0.0-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file ciforge_cli-2.0.0.tar.gz.

File metadata

  • Download URL: ciforge_cli-2.0.0.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ciforge_cli-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0983b6e87028198f6f1bb261b255808393e375c8eb075001498b7f755df9f823
MD5 059c5c2e29e0ee4aec7c3ded149557c9
BLAKE2b-256 3bc5a68eab860d21d84ca4a1d45e0f5c7fcd39ce882b9c87c396f7ecc23907c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for ciforge_cli-2.0.0.tar.gz:

Publisher: publish.yml on Tahiram32/ciforge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ciforge_cli-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: ciforge_cli-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ciforge_cli-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b8899fa3453aec5957fea152b8fe5930ab80f09c25b93beecbdf450f2c59209
MD5 0120fa730e828208d6ca34955aad4e30
BLAKE2b-256 eaf266100533f808808dfbfda229a88e77e43b6c190f279244d71fe53da1c7b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ciforge_cli-2.0.0-py3-none-any.whl:

Publisher: publish.yml on Tahiram32/ciforge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page