ruff
A utility module to run ruff check on a Python projectInstallation
dagger install github.com/kpenfound/dagger-modules/ruff@v0.0.2
Entrypoint
Return Type
Ruff
Example
dagger -m github.com/kpenfound/dagger-modules/ruff@fd87d97f49882e85c5f79a8df3eb19d144df84c2 call \
func (m *myModule) example() *Ruff {
return dag.
Ruff()
}
@function
def example() -> dag.Ruff:
return (
dag.ruff()
)
@func()
example(): Ruff {
return dag
.ruff()
}
Types
Ruff 🔗
check() 🔗
run ruff check
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
directory | Directory ! | - | A directory. |
Example
dagger -m github.com/kpenfound/dagger-modules/ruff@fd87d97f49882e85c5f79a8df3eb19d144df84c2 call \
check --directory DIR_PATH
func (m *myModule) example(ctx context.Context, directory *Directory) string {
return dag.
Ruff().
Check(ctx, directory)
}
@function
async def example(directory: dagger.Directory) -> str:
return await (
dag.ruff()
.check(directory)
)
@func()
async example(directory: Directory): Promise<string> {
return dag
.ruff()
.check(directory)
}