ruff
A utility module to run ruff check on a Python projectInstallation
dagger install github.com/kpenfound/dagger-modules/ruff@57352e06a1cfbcb5307c009d37c0201b2719b935
Entrypoint
Return Type
Ruff
Example
dagger -m github.com/kpenfound/dagger-modules/ruff@57352e06a1cfbcb5307c009d37c0201b2719b935 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@57352e06a1cfbcb5307c009d37c0201b2719b935 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)
}