Skip to main content

Python wrapper around invoking editorconfig-checker (https://github.com/editorconfig-checker/editorconfig-checker)

Project description

editorconfig-checker.python

PyPI Latest Release Downloads MIT License

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.

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

editorconfig-checker-2.6.2.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file editorconfig-checker-2.6.2.tar.gz.

File metadata

  • Download URL: editorconfig-checker-2.6.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for editorconfig-checker-2.6.2.tar.gz
Algorithm Hash digest
SHA256 ad51c469b71adf731fa4ef1f571eaaa47b194fcf04d13c3f041e8641b529e052
MD5 347ca4da38fce9f69f9dccd18cd67393
BLAKE2b-256 a2c6839ccee8c9bac4bec3c59482a07dc41f4caca25ba077e0a91d61d9d95fbe

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