pmt¶
Py mono tool is a CLI tool that simplifies using python in a monorepo.
Usage:
pmt [OPTIONS] COMMAND [ARGS]...
Options:
--backend TEXT Default backend is "system". This can be set via
this flag, the BACKEND var in CONF, or defaulted
to system.
-ap, --absolute_path PATH
-rp, --relative_path PATH
-n, --name TEXT Name as defined in CONF NAME=...
-v, --verbose
-s, --silent
-mo, --machine_output
--help Show this message and exit.
Subcommands
- deploy: Run the specified build and deploy in the specific CONF file.
- interactive: Drop into an interactive session in your specified backend.
- lint:
- list: List all CONF file names and relative paths.
- test: Run all the tests specified in the CONF file.
pmt deploy¶
Run the specified build and deploy in the specific CONF file.
Usage:
pmt deploy [OPTIONS]
Options:
--plan
--help Show this message and exit.
pmt interactive¶
Drop into an interactive session in your specified backend.
Usage:
pmt interactive [OPTIONS]
Options:
--help Show this message and exit.
pmt lint¶
Run one or more Linters specified in the CONF file.
Examples:
pmt lint
pmt lint -s black -s flake8
pmt -rp ./some/path lint
pmt -n py_mono_tools lint -l python
Usage:
pmt lint [OPTIONS]
Options:
--check
-s, --specific TEXT Specify one or more linters to run. NOTE: The
linter MUST be listed in the respected CONF file.
All Linters: ['bandit', 'black', 'checkov',
'flake8', 'isort', 'mccabe', 'mypy', 'pip-audit',
'py_doc_string_formatter', 'pydocstyle',
'pyflakes', 'pylint', 'tflint', 'tfsec',
'terraform_fmt', 'terrascan_docker',
'terrascan_terraform']
-ff, --fail_fast Stop on first failure.
--show_success Show successful outputs
--parallel NOT IMPLEMENTED Runs all linters marked with
parallel_run=True at the same time NOTE: All
linters labeled as parallel_run=False will be run
BEFORE ones marked as True.
--ignore_linter_weight Ignores linter weight and runs in the order in
CONF.
-l, --language LANGUAGE Specify a language to run linters for.
--help Show this message and exit.
pmt list¶
List all CONF file names and relative paths.
Usage:
pmt list [OPTIONS]
Options:
--help Show this message and exit.
pmt test¶
Run all the tests specified in the CONF file.
Usage:
pmt test [OPTIONS]
Options:
--help Show this message and exit.