File tree Expand file tree Collapse file tree 4 files changed +38
-1
lines changed
Expand file tree Collapse file tree 4 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
55on :
Original file line number Diff line number Diff line change @@ -147,6 +147,9 @@ make html
147147``` bash
148148# Lint
149149uv run ruff check
150+
151+ # Format code
152+ uv run ruff format
150153```
151154
152155## Contact
Original file line number Diff line number Diff line change @@ -49,3 +49,8 @@ module-root = ""
4949[tool .ruff ]
5050# TODO(shamrin) fix these errors and stop ignoring them
5151lint.ignore = [" F401" ]
52+ line-length = 100
53+
54+ [tool .ruff .format ]
55+ quote-style = " single"
56+ docstring-code-format = true
You can’t perform that action at this time.
0 commit comments