prettifyPython: Prettify Python

Description Usage Arguments Value Note

View source: R/prettifyPYTHON.R

Description

Prettify Python code.

Usage

1
prettifyPython(contents = NA)

Arguments

contents

the code to be prettified; there are three possibilities for this argument: NA (default), to use the file currently opened in RStudio; the path to a file; or the code given as a character vector

Value

The pretty code in a character string.

Note

This function requires black.


prettifyAddins documentation built on Jan. 25, 2022, 5:09 p.m.