Skip to content

Configuration

refine can be configured at the root of your repository with a .refine.toml file or in your project's pyproject.toml.

All configuration options can seen on the Config class reference, but here are a few examples.

Example .refine.toml

[refine]
select = [
    "sqlfmt",
]
exclude = [
    # Exclude only makes sense if no select is defined, since all available
    # codemods will be used, at which time we might want to exclude some.
    "sqlfmt",
]
codemod_paths = [
    ".codemods/"
]
process_pool_size = 2

Example pyproject.toml

[tool.refine]
select = [
    "sqlfmt",
]
exclude = [
    # Exclude only makes sense if no select is defined, since all available
    # codemods will be used, at which time we might want to exclude some.
    "sqlfmt",
]
codemod_paths = [
    ".codemods/"
]
process_pool_size = 2