hatch-fmt - Man Page

hatch fmt – Format and lint source code

Synopsis

hatch fmt [Options] [ARGS]...

Options

--check

Only check for errors rather than fixing them

-l,  --linter

Only run the linter

-f,  --formatter

Only run the formatter

--sync

Sync the default config file with the current version of Hatch

-h,  --help

Show a help message and exit

Caveats

The hatch-fmt(1) command is being deprecated. Use hatch-check-code(1) for linting and hatch-check-fmt(1) for formatting instead.

See Also

hatch-build(1), hatch-check(1), hatch-clean(1), hatch-config(1), hatch-dep(1), hatch-env(1), hatch-lock(1), hatch-new(1), hatch-project(1), hatch-publish(1), hatch-python(1), hatch-run(1), hatch-self(1), hatch-shell(1), hatch-status(1), hatch-test(1), hatch-version(1)

hatch(1)

Referenced By

hatch(1), hatch-build(1), hatch-check(1), hatch-clean(1), hatch-config(1), hatch-dep(1), hatch-env(1), hatch-lock(1), hatch-new(1), hatch-project(1), hatch-publish(1), hatch-python(1), hatch-run(1), hatch-self(1), hatch-shell(1), hatch-status(1), hatch-test(1), hatch-version(1).

June 2026