Skip to content

Commit

Permalink
chore: Configure Renovate (#14)
Browse files Browse the repository at this point in the history
* Add .github/renovate.json5

* Prepare for Renovate

* Use specific Starrocks tag

* Update `extends`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Edgar Ramírez Mondragón <[email protected]>
  • Loading branch information
renovate[bot] and edgarrmondragon authored Jan 28, 2025
1 parent 782e355 commit 9624ad0
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
22 changes: 0 additions & 22 deletions .github/dependabot.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",

"extends": [
// https://docs.renovatebot.com/config-presets/#grouporganization-level-presets
// https://github.com/reservoir-data/.github/blob/main/.github/renovate.json5
"reservoir-data/.github//.github/renovate.json5"
]
}
15 changes: 12 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ on:

env:
FORCE_COLOR: 1
# renovate: datasource=pypi depName=tox
TOX_VERSION: 4.24.1
# renovate: datasource=pypi depName=tox-uv
TOX_UV_VERSION: 1.20.1
# renovate: datasource=pypi depName=uv
UV_VERSION: 0.5.24

jobs:
pytest:
Expand Down Expand Up @@ -56,12 +62,15 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
with:
version: ">=0.5.0"
version: ${{ env.UV_VERSION }}
- name: Run Tox
env:
TARGET_STARROCKS_USER: root
TARGET_STARROCKS_HOST: localhost
TARGET_STARROCKS_PORT: ${{ env.STARROCKS_PORT }}
TARGET_STARROCKS_DATABASE: ${{ env.STARROCKS_DATABASE }}
run: |
uvx --with tox-uv tox -e $(echo py${{ matrix.python-version }} | tr -d .)
run: >
uvx
--with tox-uv==${{ env.TOX_UV_VERSION }}
--with tox==${{ env.TOX_VERSION }}
tox -e $(echo py${{ matrix.python-version }} | tr -d .)
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ repos:
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.31.0
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-renovate
language: python
additional_dependencies:
- pyjson5==1.6.8

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.3
Expand All @@ -34,5 +37,6 @@ repos:
rev: v1.14.1
hooks:
- id: mypy
language: python
additional_dependencies:
- types-requests
- types-requests==2.32.0.20241016
2 changes: 1 addition & 1 deletion docker-compose.yml → compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
starrocks:
image: starrocks/allin1-ubuntu:latest
image: starrocks/allin1-ubuntu:3.4.0
ports:
- "8030:8030"
- "8040:8040"
Expand Down

0 comments on commit 9624ad0

Please sign in to comment.