File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ package-dir = { "" = "src" }
2121where = [" src" ]
2222
2323[tool .ruff ]
24+ extend = " https://raw.githubusercontent.com/QuantStrategyLab/QuantPlatformKit/main/ruff-shared.toml"
2425target-version = " py310"
2526
2627[tool .ruff .lint ]
Original file line number Diff line number Diff line change 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" ]
You can’t perform that action at this time.
0 commit comments