Skip to main content

Ruff linter and formatter for collagraph single-file components

Project description

PyPI version CI status ruff

Ruff-cgx

Lint and format CGX files (collagraph single-file components) with ruff.

Usage

# Install in your environment (for example with uv)
uv add --dev ruff-cgx
# Show help for the tool
uv run ruff-cgx -h
# Check/Lint every cgx file in current folder (recursively)
uv run ruff-cgx check .
# Format every cgx file in the current folder (recursively)
uv run ruff-cgx format .
# Just check if there would be any changes from the formatter
uv run ruff-cgx format --check .
# Format just a single file
uv run ruff-cgx format my-component.cgx
# Format a folder and file
uv run ruff-cgx format ../folder_with_cgx_files my-component.cgx

Configuration

To use a specific ruff installation (e.g., in an LSP server):

import ruff_cgx

ruff_cgx.set_ruff_command("/path/to/custom/ruff")

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

ruff_cgx-0.2.2.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

ruff_cgx-0.2.2-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file ruff_cgx-0.2.2.tar.gz.

File metadata

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

File hashes

Hashes for ruff_cgx-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f4be46bfcbf4936f8695ef0e7b74faf4232d9ede0fd6c3071ea13e46a595c265
MD5 555bb1b6f114ca6b73835806006309c8
BLAKE2b-256 f624f736616a6d7d44db4527211d8294e357c6383c777d08149e6369127366c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_cgx-0.2.2.tar.gz:

Publisher: ci.yml on fork-tongue/ruff-cgx

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

File details

Details for the file ruff_cgx-0.2.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ruff_cgx-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f6f63dc3087bdb211088b79354e1e61377f42bc1780f7ad69d8c63e079e4a8f0
MD5 27520571963e825f27489b93029a1c50
BLAKE2b-256 f7e41e8f2718d8e4ac501565240e6b83578f659664c3601e5410af4a9e49e56c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_cgx-0.2.2-py3-none-any.whl:

Publisher: ci.yml on fork-tongue/ruff-cgx

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