From 78b308743abcdba09071935316cfa16650d7cb53 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 7 Aug 2025 15:55:37 +0300 Subject: [PATCH] fix: renovate config, and pre-commit linter (#30) --- .github/renovate.json | 14 ++++---------- .golangci.yml | 12 ++++++------ .pre-commit-config.yaml | 8 +++++++- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index 4a1139f..345fcca 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,8 +1,7 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "github>ivuorinen/renovate-config", - "config:recommended" + "github>ivuorinen/renovate-config" ], "labels": [ "dependencies" @@ -13,11 +12,10 @@ "semanticCommitType": "chore", "semanticCommitScope": "deps", "postUpdateOptions": [ - "gomodTidy" + "gomodUpdateImportPaths" ], - "golang": { - "enabled": true, - "gomodUpdateImportPaths": true + "gomod": { + "enabled": true }, "packageRules": [ { @@ -48,10 +46,6 @@ "groupName": "golang.org/x packages" } ], - "schedule": [ - "before 4am on monday" - ], - "timezone": "UTC", "prConcurrentLimit": 3, "prHourlyLimit": 2 } diff --git a/.golangci.yml b/.golangci.yml index d006623..194539e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -76,15 +76,15 @@ formatters: gofmt: simplify: true rewrite-rules: - - pattern: 'interface{}' - replacement: 'any' - - pattern: 'a[b:len(a)]' - replacement: 'a[b:]' + - pattern: "interface{}" + replacement: "any" + - pattern: "a[b:len(a)]" + replacement: "a[b:]" goimports: local-prefixes: - github.com/ivuorinen/gh-action-readme issues: - max-issues-per-linter: 50 - max-same-issues: 3 + max-issues-per-linter: 150 + max-same-issues: 50 fix: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 537c98b..8c7d459 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,6 +25,12 @@ repos: - id: pretty-format-json args: [--autofix, --no-sort-keys] + # Renovatebot pre-commit hooks + - repo: https://github.com/renovatebot/pre-commit-hooks + rev: 41.56.1 + hooks: + - id: renovate-config-validator + # YAML formatting with yamlfmt (replaces yamllint for formatting) - repo: https://github.com/google/yamlfmt rev: v0.17.2 @@ -37,7 +43,7 @@ repos: rev: v0.18.1 hooks: - id: markdownlint-cli2 - exclude: '^testdata/' + exclude: "^testdata/" # EditorConfig checking - repo: https://github.com/editorconfig-checker/editorconfig-checker