pytoolconfig.PyToolConfig

class pytoolconfig.PyToolConfig(tool, working_directory, model, arg_parser=None, custom_sources=None, global_config=False, global_sources=None, fall_through=False, *args, **kwargs)

Python Tool Configuration Aggregator.

__init__(tool, working_directory, model, arg_parser=None, custom_sources=None, global_config=False, global_sources=None, fall_through=False, *args, **kwargs)

Initialize the configuration object.

Parameters:
  • tool – name of the tool to use.

  • working_directory – working directory in use.

  • model – Model of configuration.

  • arg_parser – Arugument Parser.

  • custom_sources – Custom sources

  • global_config – Enable global configuration

  • global_sources – Custom global sources

  • fall_through – Configuration options should fall through between sources.

  • args – Passed to constructor for PyProject

  • kwargs – Passed to constructor for PyProject

Methods

__init__(tool, working_directory, model[, ...])

Initialize the configuration object.

parse([args])

Parse the configuration.

Attributes

arg_parser

fall_through

sources

tool

working_directory

model