Documentation
¶
Overview ¶
Package python provides the Python language plugin for monox.
Index ¶
- type PythonPlugin
- func (p *PythonPlugin) DetectProject(path string) bool
- func (p *PythonPlugin) GetDefaultTasks(project *api.Project) []api.Task
- func (p *PythonPlugin) GetDependencies(ctx context.Context, project *api.Project, workspaceRoot string) ([]api.Dependency, error)
- func (p *PythonPlugin) InferProjectConfig(projectPath string, workspaceRoot string) (*api.Project, error)
- func (p *PythonPlugin) Name() string
- func (p *PythonPlugin) RunTask(ctx context.Context, project *api.Project, task api.Task, workspaceRoot string) error
- func (p *PythonPlugin) ValidateProject(project *api.Project, workspaceRoot string) []error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PythonPlugin ¶
type PythonPlugin struct{}
PythonPlugin implements the LanguagePlugin interface for Python.
func (*PythonPlugin) DetectProject ¶
func (p *PythonPlugin) DetectProject(path string) bool
DetectProject checks if a directory contains a Python project.
func (*PythonPlugin) GetDefaultTasks ¶
func (p *PythonPlugin) GetDefaultTasks(project *api.Project) []api.Task
GetDefaultTasks returns default tasks for Python projects.
func (*PythonPlugin) GetDependencies ¶
func (p *PythonPlugin) GetDependencies(ctx context.Context, project *api.Project, workspaceRoot string) ([]api.Dependency, error)
GetDependencies extracts dependencies from a Python project.
func (*PythonPlugin) InferProjectConfig ¶
func (p *PythonPlugin) InferProjectConfig(projectPath string, workspaceRoot string) (*api.Project, error)
InferProjectConfig infers project configuration from the filesystem.
func (*PythonPlugin) RunTask ¶
func (p *PythonPlugin) RunTask(ctx context.Context, project *api.Project, task api.Task, workspaceRoot string) error
RunTask executes a task for a Python project.
func (*PythonPlugin) ValidateProject ¶
func (p *PythonPlugin) ValidateProject(project *api.Project, workspaceRoot string) []error
ValidateProject validates a Python project configuration.
Click to show internal directories.
Click to hide internal directories.