Skip to content

Commit a74af95

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

4 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/validate.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ jobs:
1515
- uses: actions/setup-node@v6
1616
with:
1717
node-version: "22"
18+
- name: Check whitespace
19+
run: |
20+
set -euo pipefail
21+
if [ "${{ github.event_name }}" = "pull_request" ]; then
22+
git fetch --no-tags --depth=1 origin "${{ github.base_ref }}"
23+
git diff --check "origin/${{ github.base_ref }}...HEAD"
24+
else
25+
git diff-tree --check --no-commit-id --root -r HEAD
26+
fi
1827
- name: Validate runtime targets
1928
run: python3 scripts/runtime_settings.py validate
2029
- 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
## 一键切换策略

0 commit comments

Comments
 (0)