From 7db1f5aa975318a646831ce95ae30157ed05f7b3 Mon Sep 17 00:00:00 2001 From: Manoj Bajaj Date: Fri, 8 May 2026 13:51:36 +0530 Subject: [PATCH] chore: agent readiness improvements - Added PR template - Configured dependabot and renovate for min_release_age - Enabled secret scanning via gitleaks pre-commit hook - Enabled naming (N) and cyclomatic complexity (C90) checks in ruff Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> Entire-Checkpoint: 81809e52b50a --- .github/dependabot.yml | 10 ++++++++++ .github/pull_request_template.md | 19 +++++++++++++++++++ .pre-commit-config.yaml | 4 ++++ pyproject.toml | 5 ++++- renovate.json | 7 +++++++ 5 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/pull_request_template.md create mode 100644 renovate.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..645c171 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..893173a --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,19 @@ +## Description + + +## Motivation and Context + + + +## How Has This Been Tested? + + +## Types of changes +- [ ] Bug fix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would cause existing functionality to change) + +## Checklist: +- [ ] My code follows the code style of this project. +- [ ] I have read the **CONTRIBUTING** document. +- [ ] All new and existing tests passed. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d4de6b0..0509a50 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,3 +5,7 @@ repos: - id: ruff args: [--fix] - id: ruff-format + - repo: https://github.com/gitleaks/gitleaks + rev: v8.18.2 + hooks: + - id: gitleaks diff --git a/pyproject.toml b/pyproject.toml index 68d75f5..d66aeb6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,5 +67,8 @@ line-length = 120 target-version = "py313" [tool.ruff.lint] -select = ["E", "F", "I", "UP"] +select = ["E", "F", "I", "UP", "N", "C90"] ignore = [] + +[tool.ruff.lint.mccabe] +max-complexity = 10 diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..c5af236 --- /dev/null +++ b/renovate.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ], + "minimumReleaseAge": "10 days" +}