Skip to content

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

License

Notifications You must be signed in to change notification settings

fork-tongue/ruff-cgx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 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 poetry)
poetry add -D ruff-cgx
# Show help for the tool
poetry run ruff-cgx -h
# Check/Lint every cgx file in current folder (recursively)
poetry run ruff-cgx check .
# Format every cgx file in the current folder (recursively)
poetry run ruff-cgx format .
# Just check if there would be any changes from the formatter
poetry run ruff-cgx format --check .
# Format just a single file
poetry run ruff-cgx format my-component.cgx
# Format a folder and file
poetry run ruff-cgx format ../folder_with_cgx_files my-component.cgx

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages