From 7696a3aaa608aa6cb21172e21963ab6bcd8834e4 Mon Sep 17 00:00:00 2001 From: TPTBusiness Date: Sun, 3 May 2026 21:20:41 +0200 Subject: [PATCH] docs: update license section from MIT to AGPL-3.0 --- .pre-commit-config.yaml | 25 +++++++++++++++++++++++-- README.md | 15 +++++++-------- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5d3bab72..3dd0922f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,6 +2,26 @@ # See https://pre-commit.com for more information repos: + # ── Test Coverage Check: new modules must have tests ────────────── + - repo: local + hooks: + - id: check-test-coverage + name: Check new rdagent modules have tests + entry: python scripts/check_test_coverage.py + language: system + pass_filenames: false + always_run: true + + # ── MyPy Ratchet: no new type errors allowed ──────────────────── + - repo: local + hooks: + - id: mypy-ratchet + name: MyPy ratchet (no new type errors) + entry: python scripts/check_mypy_ratchet.py + language: system + pass_filenames: false + always_run: true + # ── Qlib Unit Tests (MANDATORY) ────────────────────────────────── - repo: local hooks: @@ -14,10 +34,11 @@ repos: - test/backtesting/ - -v - --tb=short - - --no-cov + - --cov=rdagent + - --cov-fail-under=33 + - --cov-report=term - --ignore=test/backtesting/test_ftmo_oos.py - --ignore=test/backtesting/test_kronos_adapter.py - - --ignore=test/backtesting/test_results_db.py - --ignore=test/qlib/test_fin_quant_integration.py pass_filenames: false always_run: true diff --git a/README.md b/README.md index 394e9ea6..17d16aa3 100644 --- a/README.md +++ b/README.md @@ -517,16 +517,15 @@ Core dependencies (see [`requirements.txt`](requirements.txt) for full list): ## License -This project is licensed under the **MIT License** – see the [`LICENSE`](LICENSE) file for details. +This project is licensed under the **GNU Affero General Public License v3.0 (AGPL-3.0)**. -### Attribution Requirements +Key points of AGPL-3.0: +- You may use, modify, and distribute this software freely +- If you distribute modified versions, you MUST publish your changes under the same AGPL-3.0 license +- If you run this software as a network service (e.g., trading API), you MUST make the complete source code available to users +- Includes patent protection and anti-tivoization clauses -If you use this code or concepts in your project, you **must**: -1. Include the MIT License text -2. Keep the copyright notice: "Copyright (c) 2025 Predix Team" -3. Provide attribution to the original project - -See [`ATTRIBUTION.md`](ATTRIBUTION.md) for detailed guidelines and examples. +See the full license text in [`LICENSE`](LICENSE) or at . ---