Sign inSign up

cenk1cenk2/pipe-python

By cenk1cenk2

•Updated about 14 hours ago

Python operations with uv for pipelines.

Image
0

164

cenk1cenk2/pipe-python repository overview

⁠pipe-python

Pipe for installing, checking and building Python projects with uv on CI/CD.

pipe-python [GLOBAL FLAGS] [COMMAND] [FLAGS]

⁠Global Flags

CLI

Flag / EnvironmentDescriptionTypeDefault
$LOG_LEVELDefine the log level for the application.string
enum("panic", "fatal", "warn", "info", "debug", "trace")
"info"
$ENV_FILEEnvironment files to inject.string[]

⁠Commands

⁠pipe-python install

Install the locked dependencies of the project.

pipe-python install [FLAGS]

⁠Flags

Install

Flag / EnvironmentDescriptionTypeDefault
$PYTHON_INSTALL_LOCKEDFail when the lockfile is out of date with the project. Otherwise the lockfile is installed as it is.booltrue
$PYTHON_INSTALL_ARGSArguments to append to the install command.string

Setup

Flag / EnvironmentDescriptionTypeDefault
$PYTHON_CWDWorking directory of the uv project.string"."
$PYTHON_CACHECache directory for uv. Leave empty to use the environment defaults.string"./.uv/"
⁠pipe-python lint

Run the lint commands inside the installed environment.

pipe-python lint [FLAGS]

⁠Flags

Lint

Flag / EnvironmentDescriptionTypeDefault
$PYTHON_LINT_COMMANDSCommands to lint with, each run in order inside the installed environment.string
format(yaml([]string))
"[\"ruff format --check .\", \"ruff check .\", \"ty check .\"]"
Setup
Flag / EnvironmentDescriptionTypeDefault
$PYTHON_CWDWorking directory of the uv project.string"."
$PYTHON_CACHECache directory for uv. Leave empty to use the environment defaults.string"./.uv/"
⁠pipe-python test

Run the test commands inside the installed environment.

pipe-python test [FLAGS]

⁠Flags
Setup
Flag / EnvironmentDescriptionTypeDefault
$PYTHON_CWDWorking directory of the uv project.string"."
$PYTHON_CACHECache directory for uv. Leave empty to use the environment defaults.string"./.uv/"

Test

Flag / EnvironmentDescriptionTypeDefault
$PYTHON_TEST_COMMANDSCommands to test with, each run in order inside the installed environment.string
format(yaml([]string))
"[\"pytest --junitxml=junit.xml\"]"
⁠pipe-python build

Build the source distribution and the wheel of the project.

pipe-python build [FLAGS]

⁠Flags

Build

Flag / EnvironmentDescriptionTypeDefault
$PYTHON_BUILD_OUTPUTDirectory the distributions are written to, relative to the working directory.string"dist"
$PYTHON_BUILD_ARGSArguments to append to the build command.string
Setup
Flag / EnvironmentDescriptionTypeDefault
$PYTHON_CWDWorking directory of the uv project.string"."
$PYTHON_CACHECache directory for uv. Leave empty to use the environment defaults.string"./.uv/"
⁠pipe-python run

Run a command inside the installed environment.

pipe-python run [FLAGS] Command to run inside the installed environment.

⁠Arguments
ArgumentUsageTypeValues
arg*Command to run inside the installed environment.string[]1..*

* required

⁠Flags
Setup
Flag / EnvironmentDescriptionTypeDefault
$PYTHON_CWDWorking directory of the uv project.string"."
$PYTHON_CACHECache directory for uv. Leave empty to use the environment defaults.string"./.uv/"

Tag summary

Content type

Image

Digest

sha256:4d2dbee38…

Size

46.5 MB

Last updated

about 14 hours ago

docker pull cenk1cenk2/pipe-python