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.5.tar.gz (171.5 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.5-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cliqa-0.1.5.tar.gz
  • Upload date:
  • Size: 171.5 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.5.tar.gz
Algorithm Hash digest
SHA256 f066cb82a85ff446d9875fce2534a2cc3a026458451b9859decc9d5b697065c1
MD5 8b5388ec0f109b62969b2c30959afc10
BLAKE2b-256 d64fd386d74e8b490fbb7b6de19e9907ae445cf6e2663156824ed487e861eea7

See more details on using hashes here.

Provenance

The following attestation bundles were made for cliqa-0.1.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: cliqa-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 15.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 75afff2ebf2e6e1cb28fe2aed47acb22b7b8f3c258ca44efbf988c55b7e01c96
MD5 ccec0e0523ff70205662beadf567c6aa
BLAKE2b-256 4936fb1566063b1b5cde6cedcd1092da2eb230bdd497680fab54951674938eb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for cliqa-0.1.5-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