Create .gitignore files with ease from your command line!
About
Ignoro is a command line interface designed to help you quickly create and modify .gitignore files for your projects. The CLI uses one or more of the 550+ templates supplied by gitignore.io to craft the perfect .gitignore for your project.
Features
- Search for templates at gitignore.io.
- Show the content of a template from gitignore.io.
- Create a
.gitignorefile based on one or more templates. - List templates used in a
.gitignorefile. - Add one or more templates to a
.gitignorefile. - Remove one or more templates from a
.gitignorefile.
Installation
Using pipx (recommended)
pipx install ignoro
Using pip
pip install --user ignoro
Usage
ignoro
Create or modify a .gitignore file based on templates from gitignore.io.
ignoro [OPTIONS] COMMAND [ARGS]...
Options
--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.
Commands
add: Add templates to a.gitignorefile.create: Create a.gitignorefile.list: List templates in a.gitignorefile.remove: Remove templates from a.gitignorefile.search: Search for templates at gitignore.io.
ignoro add
Add templates to a .gitignore file. If no path is provided, the templates will be added to the .gitignore file in the current directory.
ignoro add [OPTIONS] TEMPLATES...
Arguments
TEMPLATES: Templates to add to.gitignorefile. [required]
Options
--path: Add templates to.gitignorefile at this path.--show-gitignore: Show the result of the add command instead of writing a file.--help: Show this message and exit.
ignoro create
Create a .gitignore file. If no path is provided, the .gitignore file will be created in the current directory.
ignoro create [OPTIONS] TEMPLATES...
Arguments
TEMPLATES: Templates to include in.gitignorefile. [required]
Options
--path: Create a.gitignorefile at this path.--show-gitignore: Show the result of the create command instead of writing a file.--help: Show this message and exit.
ignoro list
List templates in a .gitignore file. If no path is provided, the templates from the .gitignore file in the current directory will be listed.
ignoro list [OPTIONS]
Options
--path: List templates in.gitignorefile at this path.--help: Show this message and exit.
ignoro remove
Remove templates from a .gitignore file. If no path is provided, the templates will be removed from the .gitignore file in the current directory.
ignoro remove [OPTIONS] TEMPLATES...
Arguments
TEMPLATES: Templates to remove from.gitignorefile. [required]
Options
-
--path: Remove templates from.gitignorefile at this path. -
--show-gitignore: Show the result of the remove command instead of writing a file. -
--help: Show this message and exit.’
ignoro search
Search for templates at gitignore.io. If no search term is provided, all available templates will be listed.
ignoro search [OPTIONS] [TERM]
Arguments
TERM: Term used to search gitignore.io.
Options
--help: Show this message and exit.’
ignoro show
Show a template from gitignore.io. If no no match is found, an error will be raised.
ignoro show [OPTIONS] TEMPLATE
Arguments
TEMPLATE: Template to show from gitignore.io. [required]
Options
--help: Show this message and exit.
Development
Setup
Ignoro uses PDM to manage dependencies and virtual environments. To get started, first install PDM. Then, install the project dependencies using the command:
pdm install
Run
To run the CLI, use the command:
pdm run ignoro
Test
Ignoro uses pytest for testing. To run the test suite, use the following command:
pdm run pytest .
Formating and Linting
Ignoro uses Ruff for formatting and linting. To run the formating and linting checks, use the following command:
pdm run ruff format .
pdm run ruff check .
License
Ignoro is licensed under the MIT License.
Metadata
Release files for ignoro 1.2.2
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 | |
|---|---|---|---|---|
| ignoro-1.2.2.tar.gz | 14.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ignoro-1.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.2 kB
Release files / ignoro-1.2.2.tar.gz
| Download URL | ignoro-1.2.2.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef52819d0344d10900e8c4e355cafde3bd1cb582527819b8781eb91b69eedd6a
|
|
BLAKE2b-256 checksum How to use checksums |
a7561fa7d0d7b8f577b995d97d116b287f3b3b7a0691656c6e2377aceecf02be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.15.3 CPython/3.10.12 Linux/6.5.0-1021-azure
|
Release files / ignoro-1.2.2-py3-none-any.whl
| Download URL | ignoro-1.2.2-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de09fb2b5151fa1ba0420ce048fb0a1697bcf7619fb6bfa846140e35b78fa2b1
|
|
BLAKE2b-256 checksum How to use checksums |
ff549d700d4e27a0be5a408afde5a4b69e037d6610d4e1eca2297931a87006c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.15.3 CPython/3.10.12 Linux/6.5.0-1021-azure
|
Security for ignoro 1.2.2
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.