Skip to main content

Generates a list of files that matches .gitignore-like files

Project description

= srcignore

`srcignore` is a Typer-based CLI that reports which files inside a project match
one or more `.gitignore`-style files.

== Installation

[source,console]
----
pip install .
----

Running the tool from source without installing works too:

[source,console]
----
PYTHONPATH=src python -m srcignore --help
----

== Usage

[source,console]
----
srcignore ls PROJECT_ROOT IGNORE_FILE... [--reverse]
----

* `PROJECT_ROOT` — directory to traverse recursively.
* `IGNORE_FILE` — one or more files containing `.gitignore`-style patterns.

By default the command prints each path, relative to `PROJECT_ROOT`, that is
matched by any provided ignore file.

Pass `--reverse` to instead print paths that are *not* matched by at least one
provided ignore file. This is handy for spotting files that would be kept by
your ignore rules.

== Examples

List everything that would be ignored by `.gitignore`:

[source,console]
----
srcignore ls . .gitignore
----

Review files that are *not* matched by `.gitignore` and `.srcignore`:

[source,console]
----
srcignore ls . .gitignore .srcignore --reverse
----

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

srcignore-0.0.3.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

srcignore-0.0.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file srcignore-0.0.3.tar.gz.

File metadata

  • Download URL: srcignore-0.0.3.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.0

File hashes

Hashes for srcignore-0.0.3.tar.gz
Algorithm Hash digest
SHA256 29f1da4e6325ce0c4d2d757355777fbcefefa80dc7d7057aea57811b55d63381
MD5 be68d2cb26b812a584958d74a4e2a0ce
BLAKE2b-256 42cd7e4b53320be2993f8e144b5f8b632c0a6af098d5ed7b032190fd93aadc18

See more details on using hashes here.

File details

Details for the file srcignore-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: srcignore-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.0

File hashes

Hashes for srcignore-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bc6878bbefc82e6a61e7b987544a6e480daa2764a21b4652de3d1ecbb71f990a
MD5 533623add7559b91fc762faaabacd5f0
BLAKE2b-256 e629561c23a6de6e83b4d2de5fabd366c45655e791dbfb659d63c8455b436ef6

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