Skip to main content

gitignore-check

Lists files that are tracked by git but shouldn't be: things your .gitignore already excludes, junk (__pycache__, node_modules, *.log, .DS_Store, build output) and secret-looking file names (.env, id_rsa, *.pem, credentials.json, ...).

Zero config, stdlib only, no content scanning, so it is fast and fits in pre-commit or CI. For scanning file contents for leaked keys use gitleaks or git-secrets; this is the cheap first check.

Install / use

pip install gitignore-check
gitignore-check            # current repo
gitignore-check ~/proj --json
gitignore-check --only secret

secret   .env  (secret-looking file name (.env))
junk     pkg/__pycache__/a.pyc  (inside __pycache__/)
ignored  gen/out.txt  (tracked but matched by .gitignore)

Fix with git rm --cached <path> and add it to .gitignore. Exit codes: 0 clean, 1 findings, 2 usage/git error. .env.example/.env.sample are allowed.

Tests

pytest (7 tests; Python 3.9+). MIT license.

Support

If it is useful, you can donate: https://paypal.me/RafalBaranowski

Metadata

Release files for gitignore-check 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gitignore-check 0.1.0
File Size Uploaded Provenance Actions
gitignore_check-0.1.0.tar.gz 5.0 kB Without provenance Details for gitignore_check-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gitignore-check 0.1.0
File Interpreter ABI Platform Actions
gitignore_check-0.1.0-py3-none-any.whl Python 3 none any Details for gitignore_check-0.1.0-py3-none-any.whl

Total release size: 9.8 kB

Release files / gitignore_check-0.1.0.tar.gz

Download URL gitignore_check-0.1.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4f9ff3637b1eb7431e1e596347a6343c37647acbd2d00b8e3a232ed85bfacc57
BLAKE2b-256 checksum
How to use checksums
f23e7ecadd1c447f9b2e3d4b619bd8f900821cdb5aad201bcbd2f3e7477d7d86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / gitignore_check-0.1.0-py3-none-any.whl

Download URL gitignore_check-0.1.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b2780cc77f9639ed2b35654b6f0851cf4233b2a70b7ee792463dafafc52dd3e
BLAKE2b-256 checksum
How to use checksums
d828ac6b9f81bd5183f9bbac336b8923f475d281f88b84fcaadaadbfbb96c094
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for gitignore-check 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page