From c3eaa8d0c71b3ca64e68e19eee22698e384d45fb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 28 Nov 2022 14:14:27 +0000 Subject: [PATCH] chore(actions): configure renovate (#1182) Co-authored-by: Vasco Ramos Co-authored-by: Azory YData Bot --- .github/dependabot.yml | 12 ------------ .github/semantic.yml | 2 +- .github/workflows/pull-request.yml | 13 ++++++++++++- renovate.json | 7 +++++++ src/pandas_profiling/utils/cache.py | 1 - 5 files changed, 20 insertions(+), 15 deletions(-) delete mode 100644 .github/dependabot.yml create mode 100644 renovate.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 1133f0aba..000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,12 +0,0 @@ -version: 2 -updates: -- package-ecosystem: "pip" - directory: "/" - schedule: - interval: "weekly" - target-branch: "develop" -- package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" - target-branch: "develop" diff --git a/.github/semantic.yml b/.github/semantic.yml index 2b82d0f0d..fd160e519 100644 --- a/.github/semantic.yml +++ b/.github/semantic.yml @@ -1 +1 @@ -titleAndCommits: true +titleOnly: true diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 79bbecefa..8fd48a71b 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -5,8 +5,19 @@ on: pull_request: jobs: + commitlint: + name: Lint commit message + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: wagoid/commitlint-github-action@v5 + lint: - if: github.actor != 'dependabot[bot]' + if: github.actor != 'renovate[bot]' name: Lint source code runs-on: ubuntu-latest diff --git a/renovate.json b/renovate.json new file mode 100644 index 000000000..43e0fda7f --- /dev/null +++ b/renovate.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ], + "baseBranches": ["develop"] +} diff --git a/src/pandas_profiling/utils/cache.py b/src/pandas_profiling/utils/cache.py index f4b041917..63e929afe 100644 --- a/src/pandas_profiling/utils/cache.py +++ b/src/pandas_profiling/utils/cache.py @@ -1,7 +1,6 @@ """Dataset cache utility functions""" import zipfile from pathlib import Path - from urllib import request from pandas_profiling.utils.paths import get_data_path