Skip to content

Commit b9dc46f

Browse files
committed
Polish open source project hygiene
1 parent 89adb94 commit b9dc46f

5 files changed

Lines changed: 19 additions & 5 deletions

File tree

.github/workflows/validate.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,23 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v6
12+
with:
13+
fetch-depth: 0
1214
- uses: actions/setup-python@v6
1315
with:
1416
python-version: "3.12"
1517
- uses: actions/setup-node@v6
1618
with:
1719
node-version: "22"
20+
- name: Check whitespace
21+
run: |
22+
set -euo pipefail
23+
if [ "${{ github.event_name }}" = "pull_request" ]; then
24+
git fetch --no-tags --depth=1 origin "${{ github.base_ref }}"
25+
git diff --check "origin/${{ github.base_ref }}...HEAD"
26+
else
27+
git diff-tree --check --no-commit-id --root -r HEAD
28+
fi
1829
- name: Validate runtime targets
1930
run: python3 scripts/runtime_settings.py validate
2031
- name: Run unit tests

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ __pycache__/
44
.venv/
55
.wrangler/
66
local/
7+
.env
8+
.env.*
9+
!*.env.example
10+
web/strategy-switch-console/wrangler.toml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ It supports the system but does not decide which strategy should be live. Strate
2626
## Quick start
2727

2828
```bash
29-
python -m pip install -e .
30-
python -m pytest -q
29+
python3 scripts/runtime_settings.py validate
30+
python3 -m unittest discover -s tests -v
3131
```
3232

3333
## Manual Strategy Switch

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ QuantRuntimeSettings 是 QuantStrategyLab 的运行配置包。为 QuantStrategy
2626
## 快速开始
2727

2828
```bash
29-
python -m pip install -e .
30-
python -m pytest -q
29+
python3 scripts/runtime_settings.py validate
30+
python3 -m unittest discover -s tests -v
3131
```
3232

3333
## 一键切换策略

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ requires-python = ">=3.11"
77
[tool.ruff]
88
line-length = 120
99
target-version = "py311"
10-

0 commit comments

Comments
 (0)