Skip to content

Commit

Permalink
Merge pull request #36 from siemens/chore/automerge
Browse files Browse the repository at this point in the history
Automerge ruff bumps and update deprecated preset name
  • Loading branch information
antoineauger authored Jan 10, 2025
2 parents ea5a82e + 04c6483 commit 49c2bfd
Show file tree
Hide file tree
Showing 6 changed files with 392 additions and 564 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

permissions: read-all

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
check-scripts:
name: Check scripts
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./scripts
steps:
- name: Checkout the repository
uses: actions/checkout@main
- name: Install the latest version of uv
uses: eifinger/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Run ruff check
run: uv run --frozen ruff check
- name: Run ruff format
run: uv run --frozen ruff format --check
8 changes: 7 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
"config:recommended"
],
"packageRules": [
{
"matchPackageNames": ["ruff"],
"automerge": true
}
]
}
2 changes: 1 addition & 1 deletion scripts/announcements.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def main():
issue = repo.create_issue(title=issue_title, body=issue_description)
logger.info(f"Created issue {issue.html_url}")

except GithubException as e:
except GithubException:
logger.warning(f"Failed to create issue in {repo.html_url}")


Expand Down
Loading

0 comments on commit 49c2bfd

Please sign in to comment.