Compare commits

..

No commits in common. "d8073e4eb6ae2c2717ee9678aada7f6b1ff43549" and "b46bc950f796b1a32af61fe551f54b175d62fccb" have entirely different histories.

9 changed files with 9 additions and 21 deletions

View File

@ -1,6 +1,6 @@
import os
from pathlib import Path
from typing import List
from typing import List, Optional
from pydantic import AliasChoices, BaseModel, Field, model_validator
@ -32,8 +32,8 @@ class Config(BaseModel):
"", validation_alias=AliasChoices("gitea-token", "gitea_token")
)
gitea_org: str = Field("", validation_alias=AliasChoices("gitea-org", "gitea_org"))
max_total_score: int = Field(
100, validation_alias=AliasChoices("max-total-score", "max_total_score")
max_total_score: Optional[int] = Field(
None, validation_alias=AliasChoices("max-total-score", "max_total_score")
)
force_skip_health_check_on_test: bool = Field(
False,

View File

@ -1,7 +1,7 @@
from datetime import datetime, timezone
from enum import Enum
from pathlib import Path
from typing import Any, Dict, List, Optional, Type
from typing import Any, Dict, List, Type
from pydantic import (
AliasChoices,
@ -222,6 +222,6 @@ class Config(BaseModel):
release: Release = Release() # Release configuration
stages: List[Stage] = [] # list of stage configurations
groups: Groups = Groups()
max_total_score: Optional[int] = Field(
None, validation_alias=AliasChoices("max-total-score", "max_total_score")
max_total_score: int = Field(
100, validation_alias=AliasChoices("max-total-score", "max_total_score")
)

View File

@ -33,9 +33,9 @@ def get_teapot_post_stage(
repo_conf.grading_repo_name,
"--max-total-score",
(
str(task_conf.max_total_score)
if task_conf.max_total_score is not None
else str(repo_conf.max_total_score)
str(repo_conf.max_total_score)
if repo_conf.max_total_score is not None
else str(task_conf.max_total_score)
),
]
if not repo_conf.submitter_in_issue_title:

View File

@ -261,7 +261,6 @@
{
"name": "keyword",
"with": {
"score": 0,
"matches": [
{
"keywords": [
@ -370,7 +369,6 @@
{
"name": "clangtidy",
"with": {
"score": 0,
"matches": [
{
"keywords": [
@ -501,14 +499,12 @@
{
"name": "keyword",
"with": {
"score": 0,
"matches": []
}
},
{
"name": "cppcheck",
"with": {
"score": 0,
"matches": [
{
"keywords": [
@ -531,7 +527,6 @@
{
"name": "clangtidy",
"with": {
"score": 0,
"matches": []
}
},
@ -557,7 +552,6 @@
{
"name": "cpplint",
"with": {
"score": 0,
"matches": []
}
},
@ -658,7 +652,6 @@
{
"name": "cpplint",
"with": {
"score": 0,
"matches": [
{
"keywords": [

View File

@ -78,7 +78,6 @@
{
"name": "clangtidy",
"with": {
"score": 0,
"matches": [
{
"keywords": [

View File

@ -71,7 +71,6 @@
{
"name": "cppcheck",
"with": {
"score": 0,
"matches": [
{
"keywords": [

View File

@ -70,7 +70,6 @@
{
"name": "cpplint",
"with": {
"score": 0,
"matches": [
{
"keywords": [

View File

@ -74,7 +74,6 @@
{
"name": "elf",
"with": {
"score": 0,
"matches": [
{
"keywords": [

View File

@ -73,7 +73,6 @@
{
"name": "keyword",
"with": {
"score": 0,
"matches": [
{
"keywords": [