Ruff linter and formatter for collagraph single-file components
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ruff_cgx-0.2.3.tar.gz.
File metadata
- Download URL: ruff_cgx-0.2.3.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ec00e3229cb2904c36c8609c700473f6ab726120dcce371c89dae3f3687bbc8
|
|
| MD5 |
b44ba081644c57373e2db4d0b39a02e0
|
|
| BLAKE2b-256 |
12a06e05628dc58f78ccf8804c1f4bb9bc4265251e857d47d0ff7ed6d685bcaa
|
Provenance
The following attestation bundles were made for ruff_cgx-0.2.3.tar.gz:
Publisher:
ci.yml on fork-tongue/ruff-cgx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_cgx-0.2.3.tar.gz -
Subject digest:
9ec00e3229cb2904c36c8609c700473f6ab726120dcce371c89dae3f3687bbc8 - Sigstore transparency entry: 834983678
- Sigstore integration time:
-
Permalink:
fork-tongue/ruff-cgx@aacde78a9073696a3521680c5bb5b450bd2e7ffe -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/fork-tongue
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@aacde78a9073696a3521680c5bb5b450bd2e7ffe -
Trigger Event:
push
-
Statement type:
File details
Details for the file ruff_cgx-0.2.3-py3-none-any.whl.
File metadata
- Download URL: ruff_cgx-0.2.3-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55f267885ed4f9160840b7f03f0309333f8d65b64d00b24fe72391b1a9fb5bd9
|
|
| MD5 |
ab174944cc7ecd2fc7a09c72aef22fc9
|
|
| BLAKE2b-256 |
3b2890006080d0c43619fe175824130b0e8504af7780cadfe321881fd41c330d
|
Provenance
The following attestation bundles were made for ruff_cgx-0.2.3-py3-none-any.whl:
Publisher:
ci.yml on fork-tongue/ruff-cgx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_cgx-0.2.3-py3-none-any.whl -
Subject digest:
55f267885ed4f9160840b7f03f0309333f8d65b64d00b24fe72391b1a9fb5bd9 - Sigstore transparency entry: 834983695
- Sigstore integration time:
-
Permalink:
fork-tongue/ruff-cgx@aacde78a9073696a3521680c5bb5b450bd2e7ffe -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/fork-tongue
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@aacde78a9073696a3521680c5bb5b450bd2e7ffe -
Trigger Event:
push
-
Statement type: