From 78158471b2c3dc07bf6e81f1be125a9172b9ce57 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Sat, 9 May 2026 02:01:17 -0600 Subject: [PATCH] update --- CLAUDE.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 19219c3..f6c2de1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Project Overview -**OnlineJudge** is the backend for an Online Judge platform. Built with Django 5 + Django REST Framework, PostgreSQL, Redis, Django Channels (WebSocket), and Dramatiq (async task queue). Python 3.12+, managed with `uv`. +**OnlineJudge** is the backend for an Online Judge platform. Built with Django 6 + Django REST Framework, PostgreSQL, Redis, Django Channels (WebSocket), and Dramatiq (async task queue). Python 3.12+, managed with `uv`. ## Commands @@ -23,9 +23,10 @@ uv add # Add a dependency python manage.py test # Run all tests python manage.py test account # Run tests for a single app python manage.py test account.tests.TestClassName # Run a single test class -python run_test.py # Run flake8 lint + coverage in one step -python run_test.py -m account # Run flake8 + tests for a single module -python run_test.py -c # Run flake8 + tests + open HTML coverage report + +# Linting +ruff check . # Lint (E, F, I rules, 180-char line length) +ruff format . # Format (double quotes) ## Testing Policy @@ -136,7 +137,7 @@ Test cases and submission outputs are stored in a separate data directory (confi | Judge statuses | COMPILE_ERROR(-2), WRONG_ANSWER(-1), ACCEPTED(0), CPU_TLE(1), REAL_TLE(2), MLE(3), RE(4), SE(5), PENDING(6), JUDGING(7), PARTIALLY_ACCEPTED(8) | | User roles | Regular / Admin / Super Admin | | Contest types | Public vs Password Protected | -| Supported languages | C, C++, Python2, Python3, Java, JavaScript, Golang, Flowchart | +| Supported languages | C, C++, Python3, Java, JavaScript, Golang | ## Related Repository