30 lines
612 B
TOML
30 lines
612 B
TOML
exclude = '^web/src/gql/'
|
|
|
|
[[repos]]
|
|
repo = "https://github.com/pre-commit/pre-commit-hooks"
|
|
rev = "v6.0.0"
|
|
hooks = [
|
|
{ id = "end-of-file-fixer" },
|
|
{ id = "trailing-whitespace" },
|
|
{ id = "check-yaml" },
|
|
{ id = "check-toml" },
|
|
{ id = "check-merge-conflict" },
|
|
{ id = "check-added-large-files" },
|
|
{ id = "debug-statements" },
|
|
]
|
|
|
|
[[repos]]
|
|
repo = "https://github.com/astral-sh/ruff-pre-commit"
|
|
rev = "v0.15.13"
|
|
|
|
[[repos.hooks]]
|
|
id = "ruff-check"
|
|
args = ["--fix"]
|
|
files = '^dnscms/.*\.py$'
|
|
exclude = '/migrations/'
|
|
|
|
[[repos.hooks]]
|
|
id = "ruff-format"
|
|
files = '^dnscms/.*\.py$'
|
|
exclude = '/migrations/'
|