Skip to content

Commit bceb4fc

Browse files
committed
ci: enforce Ruff line length and YAML safety
1 parent 1a176c9 commit bceb4fc

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Every PR runs the following checks through the `CI Gate` GitHub Actions workflow
145145
| PR Title Check | Title matches `[<modules>] <type>: <description>` | n/a — edit the PR title |
146146
| License Header | Newly added `.py/.sh/.cu/.cpp/.h` files have the SPDX Apache-2.0 header | `pre-commit run spdx-check --files <path>` |
147147
| Secret Scan | gitleaks finds no leaked secrets in new commits | `gitleaks detect --config .gitleaks.toml` |
148-
| Ruff | New or modified Python files pass Ruff (`E4,E7,E9,F`) | `ruff check <changed-python-files>` |
148+
| Ruff | New or modified Python files pass Ruff (`E4,E7,E9,E501,F,S506`) | `ruff check <changed-python-files>` |
149149
| Build | `python -m build` and wheel import smoke succeed on Python 3.12 | `python -m build --sdist --wheel --outdir dist/` |
150150

151151
### Valid PR title modules

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,11 @@ no-build-isolation-package = [
201201

202202
[tool.ruff]
203203
target-version = "py310"
204+
line-length = 120
204205
extend-exclude = ["third_party", "patches"]
205206

206207
[tool.ruff.lint]
207-
select = ["E4", "E7", "E9", "F"]
208+
select = ["E4", "E7", "E9", "E501", "F", "S506"]
208209

209210
[tool.ruff.lint.per-file-ignores]
210211
"**/__init__.py" = ["F401", "F403"]

0 commit comments

Comments
 (0)