how to format python and javascript in make.com modules

by josh ozuna · codefmt

published June 16, 2026

to format python in a Make code module, paste your code into codefmt and choose python. Make runs python 3.12 with scenario data in the input global and a dict return. codefmt wraps the body so Ruff can parse the bare return, then formats and lints it. the same works for node 20 javascript modules.

why standard formatters fail on a make module

a Make code module is a function body, not a full program. it reads scenario data from the injected input global and uses a top-level return to set its output. point Ruff or Prettier at that bare body and it fails: a return at module scope is not valid as a standalone file.

codefmt wraps your code in the structure Make expects before formatting (Ruff for python, biome for javascript), then strips the wrapper back off. it also registers Make's globals before linting, so input and friends are not flagged as undefined.

how to format a make code module

  1. copy the body out of your Make code module.
  2. paste it into the codefmt Make formatter and choose python or javascript.
  3. codefmt wraps it, formats (ruff or biome), and lints (ruff or oxlint).
  4. copy the formatted result back into the module.

for python-heavy work, the dedicated python formatter covers ruff formatting and its lint rules in more depth.

make code runtimes and globals

runtimeinput / outputwhat codefmt registers
python 3.12input global, return a dictformats and lints with ruff (black-compatible, 500+ rules)
node 20 javascriptinput global, top-level returnconsole, fetch, process, Buffer, URL, timers; lodash, moment, moment-timezone via require()

for a side-by-side, see codefmt vs the Prettier playground.

Format your Make code now → paste a code module and your python or javascript comes back formatted and linted in one pass.

frequently asked questions

how do I format python in a Make.com code module?

paste your Make code module into codefmt and choose python. Make runs python 3.12 with scenario data in the input global and a dict return. codefmt wraps the body so Ruff can parse the bare return, then formats and lints it.

does Make.com code support python?

yes. the Make code module runs python 3.12 alongside node 20 javascript. scenario data arrives as the input global and you return a dict to send output back to Make. codefmt formats both the python and javascript variants.

why does Ruff or Prettier fail on a Make code module?

a Make code module is a function body, not a complete program: it uses a top-level return and the injected input global. parsing that bare body directly errors out. codefmt wraps your code in the correct structure first, then formats with Ruff for python or biome for javascript, and strips the wrapper.

what javascript globals does Make code expose?

Make code javascript runs in a node 20 sandbox with input, console, fetch, process, Buffer, URL, and the timer functions. lodash, moment, and moment-timezone are preinstalled and loaded via require(). codefmt registers all of these so they aren't flagged as undefined.

can I use async/await in Make code?

yes. Make code javascript modules run in an async context, so top-level await works, and you can use a top-level return to set the module's output. codefmt wraps the code in the correct async function before formatting and strips the wrapper afterward.

primary source: Make: the Make Code app