Skip to main content

Analyze CLI tools against clig.dev guidelines

Project description

cliqa

Analyze CLI tools against clig.dev guidelines.

Installation

uv tool install cliqa
# or
pip install cliqa

Usage

Analyze any CLI command:

cliqa analyze ls
cliqa analyze git
cliqa analyze your-cli-tool

Run specific checks:

cliqa check ls help
cliqa check git version

List all available checks:

cliqa list-checks

Features

  • No mocking: Real integration tests with actual CLI commands
  • 93% test coverage: Comprehensive test suite
  • NASA05 compliance: Defensive assertions throughout
  • clig.dev alignment: Checks against modern CLI best practices

Pre-commit Hook

Add to your .pre-commit-config.yaml:

repos:
  - repo: https://github.com/benomahony/cliqa
    rev: v0.1.4
    hooks:
      - id: cliqa
        args: [your-cli-tool]

Analyze multiple commands:

repos:
  - repo: https://github.com/benomahony/cliqa
    rev: v0.1.1
    hooks:
      - id: cliqa
        name: Check main CLI
        args: [my-tool]
      - id: cliqa
        name: Check admin CLI
        args: [my-admin-tool]

Enable AI-powered analysis:

repos:
  - repo: https://github.com/benomahony/cliqa
    rev: v0.1.1
    hooks:
      - id: cliqa
        args: [your-cli-tool, --ai]

This will analyze your CLI tool before each commit and fail if any errors are found.

Development

# Install dependencies
uv sync --extra test

# Run tests
uv run pytest

# Run pre-commit checks
pre-commit run --all-files

License

MIT

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

cliqa-0.1.4.tar.gz (171.2 kB view details)

Uploaded Source

Built Distribution

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

cliqa-0.1.4-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file cliqa-0.1.4.tar.gz.

File metadata

  • Download URL: cliqa-0.1.4.tar.gz
  • Upload date:
  • Size: 171.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cliqa-0.1.4.tar.gz
Algorithm Hash digest
SHA256 dd75ea0d7e2520ade28f250649ec00e4d1f2163108a22b95cf04c51a8b7467c1
MD5 1744ff0adc6a1d20c901a39e96bfa42f
BLAKE2b-256 9d653757cfd7bcfc205d254ee3bdc8d434700eaa260abcbb33592e71ed1211d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for cliqa-0.1.4.tar.gz:

Publisher: publish.yml on benomahony/cliqa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cliqa-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: cliqa-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cliqa-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 03b5c0dc8f0e73ff0b6fc44f54e3e041b60c72a5dd7e2d48b87a790caed9c8e4
MD5 03d67c2a023749acccd2809e455d4eee
BLAKE2b-256 13cc069f12518ef68a1d0dc6a772e96f7705ce206c1d4e60a5ef2b8c170dbdcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for cliqa-0.1.4-py3-none-any.whl:

Publisher: publish.yml on benomahony/cliqa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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