A formatter for Python files.
Patterns to include in execution and reports.
Patterns to exclude from execution and reports.
Specifying true implies
Amount of CPU. The default machine has
0.25 CPU with
960 MiB RAM.
Below is the list of options that are supported:
-e PATTERN, --exclude PATTERN patterns for files to exclude from formatting --style STYLE specify formatting style: either a style name (for example "pep8" or "google"), or the name of a file with style settings. The default is pep8 unless a .style.yapf or setup.cfg file located in the same directory as the source or one of its parent directories (for stdin, the current directory is used). --no-local-style don't search for local style definition
No tool specific severity levels are available.
Note: The incremental analysis is disabled if any kinds of configuration files are changed. The files recognized as configuration files are as follows:
- Style files:
- Files specified in
- Files specified to
- If none of the above configuration files are found:
setup.cfgat the repository root
With default options:
inspecode: yapf: default
With enabling auto-fixing and default options:
inspecode: yapf: auto-fix
With custom machine:
inspecode: yapf: machine: cpu: 1.5 # 1.5 CPU, 5760 MiB RAM
With custom options:
inspecode: yapf: options: --no-local-style:
With a configuration file:
inspecode: yapf: config-file: google
The above configuration is equivalent to:
inspecode: yapf: options: --style: google