black
This module provides a set of functions to format Python code with black and to create a development environment with black installed.
Installation
dagger install github.com/tsirysndr/daggerverse/black@e8bed26dfefaaf4ef3d00958965575131f34c69c
Types
Black 🔗
format() 🔗
Format Python code with black.
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
path | String | "." | No description provided |
Example
func (m *myModule) example(src *Directory) *Directory {
return dag.
Black().
Format(src)
}
dev() 🔗
Returns a container with black installed.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
func (m *myModule) example() *Container {
return dag.
Black().
Dev()
}