fix: renovate config, and pre-commit linter (#30)

This commit is contained in:
2025-08-07 15:55:37 +03:00
committed by GitHub
parent fcdf57486d
commit 78b308743a
3 changed files with 17 additions and 17 deletions

14
.github/renovate.json vendored
View File

@@ -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
}

View File

@@ -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

View File

@@ -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