Skip to content

Commit dffc65f

Browse files
authored
Merge branch 'main' into dependabot/github_actions/actions/checkout-5
2 parents bcc2495 + 124e2f0 commit dffc65f

File tree

3 files changed

+25
-23
lines changed

3 files changed

+25
-23
lines changed

.github/workflows/ruff.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
name: lint & format
2-
on:
3-
pull_request:
4-
types: [opened, reopened, synchronize]
2+
on:
3+
pull_request:
4+
types: [opened, reopened, synchronize]
55

66
jobs:
7-
lint:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v5
11-
- name: Install Python
12-
uses: actions/setup-python@v5
13-
with:
14-
python-version: "3.11"
15-
- name: Install ruff
16-
run: |
17-
python -m pip install --upgrade pip
18-
pip install ruff
19-
- name: Run lint
20-
run: ruff check --output-format=github contentctl/
21-
- name: Run Formatter
22-
run: ruff format --check contentctl/
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Install Python
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: '3.11'
15+
- name: Install Poetry
16+
run: python -m pip install poetry
17+
- name: Install ruff
18+
run: |
19+
poetry install --only=dev
20+
- name: Run lint
21+
run: poetry run ruff check --output-format=github contentctl/
22+
- name: Run Formatter
23+
run: poetry run ruff format --check contentctl/
24+

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ repos:
88
- id: detect-private-key
99
- id: forbid-submodules
1010
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.12.5
11+
rev: v0.12.10
1212
hooks:
13-
- id: ruff
14-
args: [ --fix ]
13+
- id: ruff-check
14+
args: [--fix]
1515
- id: ruff-format

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ setuptools = ">=80.9.0"
3838
rich = "^14.0.0"
3939

4040
[tool.poetry.group.dev.dependencies]
41-
ruff = "^0.12.5"
41+
ruff = "^0.12.10"
4242

4343
[build-system]
4444
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)