ignorem
ignorem - The best gitignore manager yet!
About
ignorem makes interacting with your .gitignore file just like using a package manager. You can "install" pre-made gitignores into your file, remove them, and update them with ease! ignorem also supports user-modified gitignores, so your manual gitignore entries will be saved.
Installation
pip install ignorem
Usage
ignorem (command) [gitignore...]
Run ignorem from the command line, in the directory that contains the .gitignore file. ignorem requires one additional command:
| Command | Description | Additional arguments |
|---|---|---|
| help | Shows info/help text. | |
| list | Lists gitignores installed in .gitignore. |
|
| query | Lists all available pre-made gitignores. | |
| add | Add the specified pre-made gitignore(s) to .gitignore. |
Gitignore(s) to add |
| remove | Remove the specified pre-made gitignore(s) from .gitignore. |
Gitignore(s) to remove |
| update | Update all pre-made gitignores installed to .gitignore. |
|
| repo-list | Lists all enabled repositories. | |
| repo-add | Adds the specified repository. | Repository URL |
| repo-del | Removes the specified repository. Cannot remove default repository. | Repository URL |
Examples
Create a new gitignore for python
ignorem add python
Add android and vim to the gitignore
ignorem add android vim
Remove vim from the gitignore
ignorem remove vim
Manual ignores
ignorem will save the entries you add manually to the .gitignore file. Simply place those entries outside of the # (BEGIN/END) ignorem auto-gen tags.
An empty gitignore is below to demonstrate this:
# BEGIN ignorem auto-gen
# This gitingore was generated by ignorem version 1.0
# https://github.com/itsmaxymoo/ignorem
# DO NOT EDIT ANY TEXT INSIDE THE ignorem auto-gen tags!
# It will be overwritten next time ignorem is ran.
# Following this header are the loose ignores, or ignores added externally.
# After that, there are the ignores generated by ignorem.
# END ignorem auto-gen
(Place your manual entries here)
# BEGIN ignorem auto-gen
# Beginning of ignorem generated ignores.
# ignorem installed gitignores:
(will contain pre-made gitignores)
# END ignorem auto-gen
Repositories
A repository is a file on a web server with instructions for downloading gitignores. A repository must be encoded as UTF-8, and follow the format:
<id> <url>
...
Where id is the name of the gitignore to be used in ignorem, and url is the url to the raw gitignore file.
For example:
c++ https://raw.githubusercontent.com/github/gitignore/master/C++.gitignore
...
For a real example, see the default repository.
Metadata
Release files for ignorem 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ignorem-1.1.3.tar.gz | 6.3 kB | Without provenance | Details for ignorem-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ignorem-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for ignorem-1.1.3-py3-none-any.whl |
Total release size: 14.1 kB
Release files / ignorem-1.1.3.tar.gz
| Download URL | ignorem-1.1.3.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cab322330eedc0a161630118a1f72b8960a89436555848de39cc237cf55e03d
|
|
BLAKE2b-256 checksum How to use checksums |
0fb17bf5e4af460b1e67380106d8bc6a9925253dcbf0a1bbb0d0bc1cca939460
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / ignorem-1.1.3-py3-none-any.whl
| Download URL | ignorem-1.1.3-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba1a756b01a460c82f3b014fbde45b9e1452b17dbd19fdeb167acaa5b6a83c05
|
|
BLAKE2b-256 checksum How to use checksums |
b171f4dbba77a7b1272fda3b99bb07d0188b155395d13ae132d642889fafde30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for ignorem 1.1.3
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.