Skip to content

fork-tongue/ruff-cgx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages