prettifyPython: Prettify Python

View source: R/prettifyPYTHON.R

prettifyPythonR Documentation

Prettify Python

Description

Prettify Python code.

Usage

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 Sept. 14, 2023, 5:06 p.m.