Skip to content

Commit 2ebf842

Browse files
authored
Merge pull request #51 from DataCrunch-io/ruff-format
Format code with Ruff
2 parents 22eb757 + 7875134 commit 2ebf842

File tree

61 files changed

+1758
-1814
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1758
-1814
lines changed

.github/workflows/format.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Based on https://docs.astral.sh/uv/guides/integration/github/#multiple-python-versions
2+
name: Format
3+
4+
# trigger on PRs and main branches
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- master
10+
- develop
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-24.04
15+
16+
steps:
17+
- uses: actions/checkout@v5
18+
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v6
21+
with:
22+
version: "0.9.5"
23+
24+
- name: Install dependencies
25+
run: uv sync --dev
26+
27+
- name: Check format
28+
run: |
29+
uv run ruff format --check
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Based on https://docs.astral.sh/uv/guides/integration/github/#multiple-python-versions
2-
name: Code Style
2+
name: Lint
33

44
# trigger on PRs and main branches
55
on:

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ make html
147147
```bash
148148
# Lint
149149
uv run ruff check
150+
151+
# Format code
152+
uv run ruff format
150153
```
151154

152155
## Contact

0 commit comments

Comments
 (0)