Skip to content

Commit 685fb69

Browse files
committed
chore: extend shared ruff-shared.toml from QPK
1 parent 08e586b commit 685fb69

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ package-dir = { "" = "src" }
2121
where = ["src"]
2222

2323
[tool.ruff]
24+
extend = "https://raw.githubusercontent.com/QuantStrategyLab/QuantPlatformKit/main/ruff-shared.toml"
2425
target-version = "py310"
2526

2627
[tool.ruff.lint]

ruff-shared.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# QSL shared ruff configuration — extend from your repo's .ruff.toml or pyproject.toml
2+
# Usage in each repo:
3+
# [tool.ruff]
4+
# extend = "https://raw.githubusercontent.com/QuantStrategyLab/QuantPlatformKit/main/ruff-shared.toml"
5+
6+
target-version = "py311"
7+
8+
[lint]
9+
ignore = [
10+
"E701", # multiple statements on one line (compact if/except style)
11+
"E702", # multiple statements on one line (semicolon)
12+
"E401", # multiple imports on one line
13+
"F541", # f-string without placeholders
14+
"F841", # unused variable (often intentional in gate scripts)
15+
]
16+
17+
[lint.per-file-ignores]
18+
"scripts/gate_codex_app_review.py" = ["E701", "E702"]
19+
"tests/*.py" = ["E402"]

0 commit comments

Comments
 (0)