editorconfig-checker.python
A Python wrapper to provide a pip-installable editorconfig-checker binary.
Internally, this package provides a convenient way to download the pre-built editorconfig-checker binary for your particular platform.
Installation
- From source code:
pip install . - From
PyPI:pip install editorconfig-checker
Usage
After installation, the ec binary should be available in your environment (or ec.exe on Windows):
ec -version
Usage with the pre-commit git hooks framework
editorconfig-checker can be included as a hook for pre-commit.
The easiest way to get started is to add this configuration to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: '' # pick a git hash / tag to point to
hooks:
- id: editorconfig-checker
alias: ec
The above hook is a python wrapper that automatically downloads and installs
editorconfig-checker binary.
If you manage your tools in some other way, for example, via ASDF,
you may want to use an alternative pre-commit hook that assumes that
ec binary executable is already available on the system path:
repos:
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: '' # pick a git hash / tag to point to
hooks:
- id: editorconfig-checker-system
alias: ec
See the pre-commit docs to check how to customize this configuration.
Release files for editorconfig-checker 3.11.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| editorconfig_checker-3.11.1.tar.gz | 4.8 kB | Details |
Release files / editorconfig_checker-3.11.1.tar.gz
| Download URL | editorconfig_checker-3.11.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
043b5ae504bc2e6d4497ac4e3058f143339eb3cffd56abb7a215c44ebfd73a1b
|
|
BLAKE2b-256 checksum How to use checksums |
c32dd19e303795e994d02864b1ecbeefcecc125ba3a04a3458b4478f597fd0eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|