Skip to content

Commit aba8ae2

Browse files
committed
chore: update dependencies, dependabot config
Move to ruff format instead of black Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
1 parent f8ecfd6 commit aba8ae2

5 files changed

Lines changed: 295 additions & 327 deletions

File tree

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# For details on how this file works refer to:
2+
# - https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
version: 2
4+
updates:
5+
# Maintain dependencies for GitHub Actions
6+
# - Check for updates once a week
7+
# - Group all updates into a single PR
8+
- package-ecosystem: github-actions
9+
directory: /
10+
schedule:
11+
interval: weekly
12+
groups:
13+
all-actions:
14+
patterns: ["*"]
15+
16+
# Maintain pip dependencies
17+
- package-ecosystem: pip
18+
directory: /
19+
schedule:
20+
interval: daily

.github/workflows/code-quality-check.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17-
- uses: psf/black@23.11.0
1817
- uses: chartboost/ruff-action@v1
18+
with:
19+
version: "0.4.1"
20+
args: 'format --check'
21+
- uses: chartboost/ruff-action@v1
22+
with:
23+
version: "0.4.1"

.pre-commit-config.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ repos:
77
stages: [commit-msg]
88
args: ["--config", ".commitlint.config.js"]
99
additional_dependencies: ['@commitlint/config-conventional']
10-
- repo: https://github.com/psf/black
11-
rev: 23.7.0
12-
hooks:
13-
- id: black
14-
stages: [commit]
1510
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: v0.0.284
11+
rev: v0.4.1
1712
hooks:
1813
- id: ruff
1914
stages: [commit]
2015
args: ["--fix", "--exit-non-zero-on-fix"]
16+
- id: ruff-format
17+
stages: [commit]

0 commit comments

Comments
 (0)