# run all the hooks against all the files. This is a useful invocation if you are using pre-commit in CI.
pre-commit run --all-files
```

**Temporarily disable hooks**

See <https://pre-commit.com/#temporarily-disabling-hooks>

For more information on using and configuring pre-commit check out the [pre-commit docs](https://pre-commit.com/#quick-start)

### Tool configurations

[Section titled “Tool configurations”](#tool-configurations)

The configuration for the tools can be found in the [`pyproject.toml`](https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#what-on-earth-is-a-pyproject-toml-file) file, using the same syntax as `black`.

For the most part the default black/ruff formats have been preserved, with a few updates, for example, increasing the line length to 120.

You can find more information about these values in the [ruff README](https://github.com/astral-sh/ruff?tab=readme-ov-file#configuration).

### Upgrading

[Section titled “Upgrading”](#upgrading)

See [this cookbook](/cookbooks/#migrating-to-auto-formatted-code) for guidance on how to enable code formatting on an existing Pegasus project.