Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .config/taplo.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
exclude = ["prek.toml"]

[formatting]
align_comments = false
12 changes: 1 addition & 11 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,8 @@
'internal'
],
semanticCommits: 'disabled',
// pre-commit is currently in beta testing, must opt in
'pre-commit': {
enabled: true
},
enabledManagers: [
'github-actions',
'pre-commit',
'cargo',
'custom.regex',
],
Expand Down Expand Up @@ -68,11 +63,6 @@
// Pin GitHub Actions to immutable SHAs
pinDigests: true
},
{
groupName: 'pre-commit',
matchManagers: ['pre-commit'],
matchFileNames: ['.pre-commit-config.yaml']
},
// Annotate GitHub Actions SHAs with a SemVer version.
{
extends: [
Expand Down Expand Up @@ -108,7 +98,7 @@
enabled: false
},
{
matchManagers: [ 'cargo', 'pre-commit', 'github-actions', 'custom.regex' ],
matchManagers: [ 'cargo', 'github-actions', 'custom.regex' ],
minimumReleaseAge: '7 days'
}
]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
- name: "rustfmt"
run: cargo fmt --all --check
- name: Run prek checks
uses: j178/prek-action@564dda4cfa5e96aafdc4a5696c4bf7b46baae5ac # v1.1.0
uses: j178/prek-action@0bb87d7f00b0c99306c8bcb8b8beba1eb581c037 # v1.1.1
env:
PREK_SKIP: cargo-fmt,cargo-clippy

Expand Down
55 changes: 0 additions & 55 deletions .pre-commit-config.yaml

This file was deleted.

77 changes: 77 additions & 0 deletions prek.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
fail_fast = true
default_install_hook_types = ["pre-push"]
exclude = """
(?x)^(
.*/(snapshots)/.*|
)$
"""

[[repos]]
repo = "builtin"
hooks = [
{ id = "trailing-whitespace" },
{ id = "mixed-line-ending" },
{ id = "check-yaml" },
{ id = "check-toml" },
{ id = "end-of-file-fixer" }
]

[[repos]]
repo = "https://github.com/crate-ci/typos"
rev = "v1.42.3"
hooks = [
{ id = "typos" }
]

[[repos]]
repo = "https://github.com/executablebooks/mdformat"
rev = "1.0.0"
hooks = [
{
id = "mdformat",
language = "python",
args = [
"--number",
"--compact-tables",
"--align-semantic-breaks-in-lists"
],
additional_dependencies = [
"mdformat-mkdocs==5.1.4",
"mdformat-simple-breaks==0.1.0"
]
}
]

[[repos]]
repo = "local"
hooks = [
{
id = "taplo-fmt",
name = "taplo fmt",
entry = "taplo fmt --config .config/taplo.toml",
language = "python",
additional_dependencies = ["taplo==0.9.3"],
types = ["toml"]
}
]

[[repos]]
repo = "local"
hooks = [
{
id = "cargo-fmt",
name = "cargo fmt",
entry = "cargo fmt --",
language = "system",
types = ["rust"],
pass_filenames = false
},
{
id = "cargo-clippy",
name = "cargo clippy",
language = "system",
types = ["rust"],
pass_filenames = false,
entry = "cargo clippy --all-targets --all-features -- -D warnings"
}
]
Loading