Skip to main content

Smart Git hygiene for modern projects.

Project description

🔥 GitIgnite

PyPI version Python Versions Tests License: MIT

Smart Git hygiene for modern projects.

Keep your repositories clean, secure, and production-ready by automatically detecting Git hygiene issues, recommending .gitignore improvements, auditing risky files, and validating repository health.

Smart Git hygiene for modern projects.

GitIgnite is a lightweight command-line tool that helps developers maintain clean repositories by detecting common Git hygiene issues, recommending .gitignore improvements, identifying risky files, and evaluating repository health.

Whether you're starting a new project or maintaining an existing one, GitIgnite helps you avoid accidentally committing generated files, secrets, caches, and development artifacts.


✨ Features

  • 🔍 Scan projects automatically

    • Detects technologies used in your repository.
    • Recommends relevant .gitignore rules.
  • 🛠️ Apply fixes

    • Adds missing .gitignore entries automatically.
  • 🩺 Evaluate repository health

    • Generates a Git Hygiene Score.
    • Highlights potential issues and recommendations.
  • 🔐 Audit risky files

    • Identifies files that are commonly committed by mistake.
  • ⚙️ CI-friendly

    • Supports non-zero exit codes for automated workflows.
  • 🚀 Easy installation

    • Install directly from PyPI.

Supported Technologies

GitIgnite currently supports detection and recommendations for:

Technology Detection GitIgnore Support
Python
VS Code
Jupyter Notebooks
Docker
Terraform

More technologies are planned for future releases.


Installation

Install GitIgnite from PyPI:

pip install gitignite

Verify installation:

ignite --help

Quick Start

Scan a Project

Detect technologies and review current Git hygiene:

ignite scan

Example output:

🔥 ignite
Scanning: /path/to/project

Detected:
✓ Python
✓ VS Code

Already configured:
✓ .venv/
✓ __pycache__/
✓ *.pyc
✓ .vscode/

Evaluate Repository Health

Generate a Git Hygiene Score:

ignite doctor

Example:

🩺 ignite doctor

Git Hygiene Score: 100/100

Detected:
✓ Python
✓ VS Code

✓ No issues found.

Use in Continuous Integration

Fail builds when hygiene issues are detected:

ignite doctor --ci

Example:

CI check passed.

Exit codes:

Exit Code Meaning
0 No issues found
1 Issues detected

Automatically Fix Missing Rules

Apply recommended .gitignore entries:

ignite fix

GitIgnite updates your .gitignore safely by appending missing rules.


Audit Risky Files

Identify files that may expose secrets or unnecessary artifacts:

ignite audit

Example:

🔍 ignite audit

✓ No obvious risks found.

Typical Workflow

Use GitIgnite as part of your development process:

ignite scan
ignite doctor
ignite fix
ignite audit

GitHub Actions Example

Integrate GitIgnite into CI pipelines:

- name: Check Git hygiene
  run: ignite doctor --ci

Why GitIgnite?

Many repositories unintentionally include:

  • Virtual environments
  • Cache directories
  • Notebook checkpoints
  • IDE settings
  • Log files
  • Environment files
  • Generated artifacts

These files clutter repositories, increase review noise, and may expose sensitive information.

GitIgnite helps teams establish consistent Git hygiene with minimal effort.


Project Status

GitIgnite is actively maintained and continuously evolving.

Planned improvements include:

  • Additional technology detectors
  • Custom configuration support
  • Expanded auditing capabilities
  • Enhanced CI integrations

Contributing

Contributions, suggestions, and bug reports are welcome.

To contribute:

  1. Fork the repository.
  2. Create a feature branch.
  3. Add tests for your changes.
  4. Submit a pull request.

Please ensure all tests pass before opening a PR.


Development

Clone the repository:

git clone https://github.com/sirishapadmasekhar/gitignite.git
cd gitignite

Create a virtual environment:

python -m venv .venv
source .venv/bin/activate

Install development dependencies:

pip install -r requirements-dev.txt

Run tests:

pytest

License

This project is licensed under the MIT License.

See the LICENSE file for details.


Links


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

gitignite-0.4.2.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

gitignite-0.4.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file gitignite-0.4.2.tar.gz.

File metadata

  • Download URL: gitignite-0.4.2.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for gitignite-0.4.2.tar.gz
Algorithm Hash digest
SHA256 93b4f96bf6b26d4e32e9d33cc21acbd8e97dff3a626eab47a7aff29a1c3b4158
MD5 cdebe7b170f5f3e19b04f58b36b3ed56
BLAKE2b-256 9bb6456ed549fc880f759dc164933b7672cf4ce3104a5d6e8069a1aa0253e45c

See more details on using hashes here.

File details

Details for the file gitignite-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: gitignite-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for gitignite-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2286c84c3bd787ec9d6fa5c420d4e7289143b29f5e94aba2fbf0062659705da
MD5 f96fd07fda6c10cb56ce71f7cd8893be
BLAKE2b-256 e0ff0c15d029f4d9e978683d0fc396e1aa6d0875fead5b366f659ec0fd4575e4

See more details on using hashes here.

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