Smart Git hygiene for modern projects.
Project description
🔥 GitIgnite
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
.gitignorerules.
-
🛠️ Apply fixes
- Adds missing
.gitignoreentries automatically.
- Adds missing
-
🩺 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:
- Fork the repository.
- Create a feature branch.
- Add tests for your changes.
- 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
- GitHub Repository: https://github.com/sirishapadmasekhar/gitignite
- PyPI Package: https://pypi.org/project/gitignite/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitignite-0.4.1.tar.gz.
File metadata
- Download URL: gitignite-0.4.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e24a50536f3bb252103c8e38f6f86829cfb6fe9e310b00ee349f6fec90bdff2
|
|
| MD5 |
a7e9388dd8df23526b9fd1a8776ae8f7
|
|
| BLAKE2b-256 |
dc56b69dfdf03193e352a06eb0ec16bc25c03d2b60862bcaf002cb3249b30293
|
File details
Details for the file gitignite-0.4.1-py3-none-any.whl.
File metadata
- Download URL: gitignite-0.4.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d4d302d28145b28dc7b49f5da8ff8f2bc923fa8c50c50c3351c0c48cd1e4038
|
|
| MD5 |
610e51e868bd73d5216227e5b00fecb5
|
|
| BLAKE2b-256 |
8098db5802f4d38810d56296403ed0505d79468e02f268a322a93e59d35fa9e5
|