Skip to content

Commit 4d5a060

Browse files
Pigbibicodex
andauthored
chore: remove legacy dependency files (#197)
* chore: remove legacy dependency files Co-Authored-By: Codex <noreply@openai.com> * chore: allow legacy dependency manifest removal Co-Authored-By: Codex <noreply@openai.com> --------- Co-authored-by: Codex <noreply@openai.com>
1 parent 9fe7b37 commit 4d5a060

13 files changed

Lines changed: 41 additions & 39 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
run: |
6666
set -euo pipefail
6767
python -m pip install --upgrade pip uv
68-
uv sync --frozen --extra test --no-install-project
68+
uv sync --frozen --extra test
6969
- name: Smoke import pinned shared packages
7070
run: |
7171
set -euo pipefail

.github/workflows/sync-cloud-run-env.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ jobs:
272272
run: |
273273
set -euo pipefail
274274
python -m pip install --upgrade pip uv
275-
uv sync --frozen --no-dev --no-install-project
275+
uv sync --frozen --no-dev
276276
- name: Resolve Cloud Run sync targets
277277
id: strategy_requirements
278278
if: steps.env_sync_config.outputs.enabled == 'true'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ __pycache__/
88
.runtime/
99
ft_cookies*.json
1010

11+
12+
*.egg-info/

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ RUN apt-get update \
1313
&& apt-get install -y --no-install-recommends git \
1414
&& rm -rf /var/lib/apt/lists/*
1515

16-
COPY pyproject.toml uv.lock ./
16+
COPY . .
1717
RUN python -m pip install --upgrade pip uv \
18-
&& uv sync --frozen --no-dev --no-install-project \
18+
&& uv sync --frozen --no-dev \
1919
&& apt-get purge -y git \
2020
&& apt-get autoremove -y --purge \
21-
&& rm -rf /var/lib/apt/lists/*
22-
23-
RUN useradd --create-home --uid 1000 appuser
21+
&& rm -rf /var/lib/apt/lists/* \
22+
&& useradd --create-home --uid 1000 appuser \
23+
&& chown -R appuser:appuser /app
2424

25-
COPY --chown=appuser:appuser . .
2625
USER appuser
2726

2827
CMD ["gunicorn", "--bind", ":8080", "main:app"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Direct runtime profiles can usually run from market history or portfolio state.
3838
## Quick start
3939

4040
```bash
41-
uv sync --frozen --extra test --no-install-project
41+
uv sync --frozen --extra test
4242
uv run --no-sync ruff check --exclude external .
4343
uv run --no-sync python scripts/check_qpk_pin_consistency.py
4444
```

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ FirstradePlatform 是 QuantStrategyLab 的实验性 Firstrade 执行平台。实
3838
## 快速开始
3939

4040
```bash
41-
uv sync --frozen --extra test --no-install-project
41+
uv sync --frozen --extra test
4242
uv run --no-sync ruff check --exclude external .
4343
uv run --no-sync python scripts/check_qpk_pin_consistency.py
4444
```

constraints.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "firstrade-platform"
7-
version = "0.2.0"
7+
version = "0.3.0"
88
description = "Experimental QuantStrategyLab platform layer for Firstrade through an unofficial API wrapper."
99
readme = "README.md"
1010
requires-python = ">=3.11"
@@ -50,6 +50,7 @@ include = [
5050
"application*",
5151
"entrypoints*",
5252
"notifications*",
53+
"scripts*",
5354
]
5455

5556
[tool.pytest.ini_options]

requirements.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

scripts/gate_codex_app_review.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def compile_patterns(policy: dict[str, Any]) -> list[re.Pattern[str]]:
103103

104104
# ─── static guard ────────────────────────────────────────────────────────────
105105

106+
ALLOWED_REMOVED_FILES = {"constraints.txt", "requirements.txt"}
107+
106108
_SENSITIVE = re.compile(
107109
r'(?P<field>api[_\s]?key|secret|password|token|credential|private[_\s]?key)\s*[:=]\s*["\']'
108110
r'(?!\$\{\{|{{|example|placeholder|test|your[-_\s]|xxx|TODO|CHANGEME)[^"\']{12,}["\']',
@@ -143,7 +145,7 @@ def check_metadata(files: list[dict[str, Any]], policy: dict[str, Any]) -> list[
143145
for f in files:
144146
fn = f.get("filename", "?")
145147
st = (f.get("status") or "").lower().strip()
146-
if st == "removed":
148+
if st == "removed" and fn not in ALLOWED_REMOVED_FILES:
147149
issues.append(f"**File deleted**: `{fn}` — verify intentional")
148150
elif st == "renamed":
149151
issues.append(f"**File renamed**: `{f.get('previous_filename', '?')}` → `{fn}`")

0 commit comments

Comments
 (0)