From f6376d867ccbfbaa927a3f74aa779b43a0439b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Wed, 20 Apr 2022 11:48:24 +0530 Subject: [PATCH] Added renovate bot --- .pre-commit-config.yaml | 44 ++++++++++++++++++++++++++++++++++++++++- renovate.json | 42 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 renovate.json diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 31af5b7c7..a2632223d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,49 @@ repos: rev: 'v0.942' hooks: - id: mypy - # stages: [push] + pass_filenames: false # suppress the normal filename passing + files: ^freqtrade/ # filter the files down to a specific subdirectory + # pre-commit only supports running at the root of a repo since that's where + # git hooks run. but it also allows running arbitrary code so you can + # step outside of those bounds + # note that `bash` will reduce your portability slightly + verbose: true + entry: mypy freqtrade + additional_dependencies: + # Splitting dashes and items on separate lines is intentional, + # enables Renovate's pip_requirements manager to update this file. + - + types-cachetools==5.0.0 + - + types-filelock==3.2.5 + - + types-python-dateutil==2.8.10 + - + types-requests==2.27.15 + - + types-tabulate==0.8.6 + - + types-urllib3==1.26.11 + + - id: mypy + pass_filenames: false + files: ^scripts/ + entry: mypy scripts + additional_dependencies: + # Splitting dashes and items on separate lines is intentional, + # enables Renovate's pip_requirements manager to update this file. + - + types-cachetools==5.0.0 + - + types-filelock==3.2.5 + - + types-python-dateutil==2.8.10 + - + types-requests==2.27.15 + - + types-tabulate==0.8.6 + - + types-urllib3==1.26.11 - repo: https://github.com/pycqa/isort rev: '5.10.1' diff --git a/renovate.json b/renovate.json new file mode 100644 index 000000000..1cfe265a3 --- /dev/null +++ b/renovate.json @@ -0,0 +1,42 @@ +{ + "extends": [ + "config:base", + ":prConcurrentLimit20", + ":preserveSemverRanges" + ], + "ignorePresets": [ + ":dependencyDashboard" + ], + "semanticCommits": "enabled", + "commitMessageTopic": "{{depName}}", + "pip_requirements": { + "fileMatch": [ + "(^|/)(requirements[\\w-]*\\.txt|\\.pre-commit-config\\.yaml)$" + ] + }, + "pre-commit": { + "enabled": true + }, + "packageRules": [ + { + "matchManagers": ["pre-commit"], + "commitMessageTopic": "{{depName}}", + "semanticCommitScope": "pre-commit" + }, + { + "matchPackagePatterns": ["(^|/)mypy$"], + "groupName": "mypy", + "versioning": "pep440", + }, + { + "matchPackagePatterns": ["(^|/)flake8$"], + "versioning": "pep440", + "groupName": "flake8" + }, + { + "matchPackagePatterns": ["(^|/)isort$"], + "versioning": "pep440", + "groupName": "isort" + } + ] +} \ No newline at end of file