From 69fde96f6741536d6fe6e1fe3efdca4f61703373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sat, 28 Dec 2024 09:58:26 +0100 Subject: [PATCH] refactor: setup renovate to manage dependencies This should make it easier to keep the repo up to date. --- .editorconfig | 14 ++++++++++++++ .renovaterc.json | 34 ++++++++++++++++++++++++++++++++++ renovate.json | 3 --- 3 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 .editorconfig create mode 100644 .renovaterc.json delete mode 100644 renovate.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..28bde6a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true + +[*.{nix,toml,json}] +indent_style = space +indent_size = 2 + +[*.rs] +indent_style = space +indent_size = 4 diff --git a/.renovaterc.json b/.renovaterc.json new file mode 100644 index 0000000..bdcce88 --- /dev/null +++ b/.renovaterc.json @@ -0,0 +1,34 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "assignees": [ + "jalil" + ], + "automerge": true, + "automergeStrategy": "fast-forward", + "automergeType": "pr", + "commitBodyTable": true, + "dependencyDashboard": true, + "extends": [ + "config:recommended" + ], + "prCreation": "immediate", + "cargo": { + "commitMessageTopic": "Rust crate {{depName}}", + "fileMatch": [ + "(^|/)Cargo\\.toml$" + ], + "versioning": "cargo", + "enabled": true + }, + "nix": { + "fileMatch": [ + "(^|/)flake\\.nix$" + ], + "commitMessageTopic": "flake inputs", + "commitMessageExtra": "to {{newValue}}", + "enabled": true + }, + "automergeSchedule": [ + "* 0-1 * * *" + ] +} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 7190a60..0000000 --- a/renovate.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json" -}